diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-12-19 23:56:54 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-12-19 23:56:54 -0500 |
commit | c9135bc8e2e64a745e5aa235f34f35e455263216 (patch) | |
tree | 3374a72e4dba0a6890d9d9d9fc003851519084a3 /deliver.groovy | |
parent | 9f332b54301017634671e28f18d82fe6df4f4eda (diff) | |
download | delivery_control-c9135bc8e2e64a745e5aa235f34f35e455263216.tar.gz |
Use remote_host instead of local system (i.e. support docker containers)
Diffstat (limited to 'deliver.groovy')
-rw-r--r-- | deliver.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deliver.groovy b/deliver.groovy index 7ec00a6..2f411fe 100644 --- a/deliver.groovy +++ b/deliver.groovy @@ -75,7 +75,7 @@ node('master') { // Retrieve the spec files from the nodes where they were created. unstash "spec-stash-RHEL-6" unstash "spec-stash-OSX-10.11" - hostname = sh(script: "hostname", returnStdout: true).tokenize(".")[0] + hostname = remote_host.tokenize(".")[0] withCredentials([usernamePassword(credentialsId: '322ad15d-2f5b-4d06-87fa-b45a88596f30', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { |