aboutsummaryrefslogtreecommitdiff
path: root/deliver.groovy
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-12-19 23:56:54 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-12-19 23:56:54 -0500
commitc9135bc8e2e64a745e5aa235f34f35e455263216 (patch)
tree3374a72e4dba0a6890d9d9d9fc003851519084a3 /deliver.groovy
parent9f332b54301017634671e28f18d82fe6df4f4eda (diff)
downloaddelivery_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.groovy2
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')]) {