Skip to content

peterbn/gradle-ssh-plugin

 
 

Repository files navigation

Gradle SSH Plugin Build Status

Gradle SSH Plugin is a Gradle plugin providing remote command execution and file transfer features for continuous delivery.

Please see Gradle SSH Plugin web site for getting started or user guide.

Contribution

Please open your issue or pull request. Any issue is welcome.

Build

Run Gradle wrapper.

./gradlew build

Known issues

Currently 1 test will be failed on Mac due to lack of support hashed known hosts. See #69.

Acceptance Test

We can run acceptance tests to verify behavior of the plugin on Gradle environment.

Prerequisite:

  • SSH service must be started on localhost port 22
  • Current user must be able to log in with a private key placed at ~/.ssh/id_rsa without any passphrase
  • SSH service must accept SFTP subsystem

Upload a built JAR into the local repository and invoke a test.

./gradlew uploadArchives
./gradlew -p acceptance-tests -i test

Aggressive tests

Above does not contain aggressive tests such as creating users or changing system configration. Invoke with aggressiveTest to run aggressive tests. It is strongly recommended to run on a disposable instance such as Travis CI.

./gradlew -p acceptance-tests -i aggressiveTest

Publish to Maven Central

Prerequisite:

  • ~/.gradle/gradle.properties must contain
    • signing.keyId
    • signing.secretKeyRingFile
    • sonatypeUsername
    • sonatypeFullname
  • PGP key must be placed at signing.secretKeyRingFile
  • Passphrase of key pair must be known
  • Password of Sonatype must be known

Invoke the publishing task:

./gradlew publishMavenCentral

Related repositories

About

Gradle SSH Plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published