int128 / int128/gradle-ssh-plugin

Remote script execution

Open
#77 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Groovy
Stars
325
Forks
59
Avg merge
5h 29m
Merged PRs (30d)
6

Description

Executing Groovy script on the remote host.

task executeScript(type: SshTask) {
  session(remotes.server) {
    executeScript groovy: """
      // here will be executed on the remote host
      println System.properties['user.name']
    """
  }
}

Also giving dependencies:

dependencies {
  remoteRuntime 'org.codehaus.groovy:groovy-all:2.3.0'
}

task executeScript(type: SshTask) {
  session(remotes.server) {
    executeScript classpath: dependencies.remoteRuntime, groovy: """
      // here will be executed on the remote host
      println System.properties['user.name']
    """
  }
}
}

TODO:

  • What is default groovy dependencies? Bundled one with Gradle?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SshTask session and executeScript entry points shown in the issue, then inspect how the remoteRuntime dependency is passed. Clarify which Groovy dependencies should be available by default and how an explicit classpath is handled. Done means the remote Groovy example works with and without the documented dependency configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
devops, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.