From c9135bc8e2e64a745e5aa235f34f35e455263216 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 19 Dec 2018 23:56:54 -0500 Subject: Use remote_host instead of local system (i.e. support docker containers) --- deliver.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')]) { -- cgit