Closed jmalacrida-itexico closed 7 years ago
gradle-ssh-plugin-2.2.0 (groovy-ssh-2.2.0, jsch-0.1.52, groovy-2.4.7, java-1.8.0_25)
ssh.settings { dryRun = project.hasProperty('dryRun') } def pass = System.properties['p'] remotes { aws { host = '***********' port = 22 user = 'ubuntu' passphrase = '************' identity = new File('k') } } task showPlatformVersion { println ssh.version ssh.run { session(remotes.aws) { execute 'uname -a' execute 'cat /etc/*-release', ignoreError: true } } } task deploy(dependsOn: war) { ssh.run { session(remotes.aws) { put from: war.archivePath.path, into: '/webapps' execute 'sudo service tomcat restart' } } }
Ignore the previous issue. I was doing something wrong. I can ssh properly from gradle.
Environment info
gradle-ssh-plugin-2.2.0 (groovy-ssh-2.2.0, jsch-0.1.52, groovy-2.4.7, java-1.8.0_25)
Steps to reproduce