Skip to content

Releases: int128/gradle-ssh-plugin

1.1.4

01 Nov 12:47
Compare
Choose a tag to compare

Released on 2015-11-01

  • #177 Groovy SSH 1.1.8
  • Bug fix
    • Fix retry connection mechanism (broken since 1.1.2)

1.1.3

14 May 13:44
Compare
Choose a tag to compare

Released on 2015-05-14

  • #160 Groovy SSH 1.1.7
  • New Feature
    • Add SSH keep-alive setting (interval 60 seconds by default)
  • Bug fix
    • Fix typo in the usage banner

1.1.2

30 Mar 15:26
Compare
Choose a tag to compare

Released on 2015-03-30

  • #154 Groovy SSH 1.1.6
  • New Feature
    • ECDSA user key support
  • Kaizen
    • Improve error messages of the container builder

Note that ECDSA host key in known_hosts is not supported yet. Please contact me if you faced any problems.

1.1.1

26 Feb 02:34
Compare
Choose a tag to compare

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

24 Feb 15:33
Compare
Choose a tag to compare

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

11 Feb 08:54
Compare
Choose a tag to compare

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

08 Feb 06:20
Compare
Choose a tag to compare

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
// 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

06 Feb 17:09
Compare
Choose a tag to compare

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

04 Feb 16:30
Compare
Choose a tag to compare

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'

1.0.1

05 Jan 15:55
Compare
Choose a tag to compare

Released on 2015-01-05

  • #137 Bump to Groovy SSH 1.0.1
  • Kaizen
    • #138 Change default logging method to stdout and make easy to find problems
    • Fix hostname does not appear in console log if logging is set to stdout