Bot releases are visible (Hide)
Published by int128 over 8 years ago
Released on 2016-05-14
Published by int128 over 8 years ago
Released on 2016-05-07
Published by int128 over 8 years ago
Released on 2016-04-01
sudoPassword
setting (thanks to @johnjaylward)sudoPath
setting (thanks to @ashrafmr)agentForwarding
setting (thanks to @dantonini)Published by int128 over 8 years ago
Released on 2016-03-24
Published by int128 over 8 years ago
Released on 2016-03-20
remove
method fails if any file or directory does not exist (thanks to @mvysny, @centic9)sftp
method always returns nullPublished by int128 over 8 years ago
Released on 2016-03-13
allRoles()
to remote container (thanks to @matthiasbalke)Published by int128 over 8 years ago
Released on 2016-03-06
Published by int128 over 8 years ago
Released on 2016-02-26
Published by int128 over 8 years ago
Released on 2016-02-09
Published by int128 over 8 years ago
Released on 2016-02-07
Published by int128 almost 9 years ago
Released on 2015-11-01
Published by int128 over 9 years ago
Released on 2015-05-14
Published by int128 over 9 years ago
Released on 2015-03-30
Note that ECDSA host key in known_hosts
is not supported yet. Please contact me if you faced any problems.
Published by int128 over 9 years ago
Released on 2015-02-26
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()
}
}
A trait extension can not access to the project now. Instead use a map extension. #148 has been removed.
Published by int128 over 9 years ago
Released on 2015-02-25
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.
Published by int128 over 9 years ago
Released on 2015-02-11
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'
}
}
Published by int128 over 9 years ago
Released on 2015-02-08
ignoreError
setting// 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: {...}
Published by int128 over 9 years ago
Released on 2015-02-07
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'
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.
Published by int128 over 9 years ago
Released on 2015-02-04
// 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'
Published by int128 almost 10 years ago
Released on 2015-01-05
stdout
and make easy to find problemsstdout