Releases: int128/gradle-ssh-plugin
Releases · int128/gradle-ssh-plugin
1.1.4
1.1.3
1.1.2
1.1.1
Released on 2015-02-26
- #149 Groovy SSH 1.1.5
- New Feature
- Map based DSL extension system
ssh.settings {
extensions.add restartAppServer: {
execute "/opt/${project.name}/tomcat/bin/shutdown.sh"
execute "/opt/${project.name}/tomcat/bin/startup.sh"
}
}
ssh.run {
session(ssh.remotes.testServer) {
restartAppServer()
}
}
No backward compatibility change
A trait extension can not access to the project now. Instead use a map extension. #148 has been removed.
1.1.0
Released on 2015-02-25
- #147 Bump to Groovy SSH 1.1.4
- New Feature
- Port forwarding support
- #148 Give access to the project in an extension
- Kaizen
- Improve log readability
- Trait based DSL extension system
No backward compatible change
DSL extension system is changed from mixin to trait. Older extensions may work but should be migrated to traits. See the document for details.
Note that extensions must be placed in the buildSrc/src/main/groovy
directory.
1.0.5
Released on 2015-02-11
- #143 Bump to Groovy SSH 1.0.7
- Kaizen
- Fix compatibility for Gradle 1.x (that is Groovy 1.8.6)
- Add acceptance test on Gradle 1.12
How to Use on Gradle 1.x
Add Groovy backports library as follows:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.hidetake:gradle-ssh-plugin:1.0.5"
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.6'
}
}
1.0.4
Released on 2015-02-08
- #143 Bump to Groovy SSH 1.0.6
- New Feature
- Ignore the exit status of the remote command or shell by the
ignoreError
setting
- Ignore the exit status of the remote command or shell by the
// do not raise error even if the command returns non-zero exit status
execute 'exit 1', ignoreError: true
// do not raise error even if the command returns non-zero exit status
executeBackground 'exit 1', ignoreError: true
// do not raise error even if the command returns non-zero exit status
executeSudo 'exit 1', ignoreError: true
// do not raise error even if the shell returns non-zero exit status
shell ignoreError: true, interaction: {...}
1.0.3
Released on 2015-02-07
- #142 Bump to Groovy SSH 1.0.5
- New Feature
- Add the new syntax to get the content of the remote file.
- Kaizen
- Change syntax of put() for symmetric design.
New feature
get()
supports following options now.
// specify a file path or File object
get from: '/remote/file', into: 'local_file'
get from: '/remote/file', into: buildDir
// specify an output stream
file.withOutputStream { stream ->
get from: '/remote/file', into: stream
}
// get content as a string
def text = get from: '/remote/file'
No backward compatible change
Some syntax of put()
is replaced with from:
.
Old syntax:
put file: 'test.txt', into: '/tmp'
put file: new File('test.txt'), into: '/tmp'
put files: [new File('test.txt')], into: '/tmp'
put stream: stream, into: '/tmp/test.dat'
is replaced with new syntax:
put from: 'test.txt', into: '/tmp'
put from: new File('test.txt'), into: '/tmp'
put from: [new File('test.txt')], into: '/tmp'
put from: stream, into: '/tmp/test.dat'
See the user guide for details.
1.0.2
Released on 2015-02-04
- #140 Bump to Groovy SSH 1.0.3
- New Feature
- Add the new syntax to put a content into the remote file. See the user guide for details.
// specify a file path, File object or Interable<File>
put file: 'local_file', into: '/remote/file'
put file: buildDir, into: '/remote/folder'
put files: files('local_file1', 'local_file2'), into: '/remote/folder'
// specify a string
put text: 'hello world', into: '/remote/script.sh'
// specify a byte array
put bytes: [0xff, 0xff] as byte[], into: '/remote/fixture.dat'