diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-12-20 18:55:48 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-12-20 18:55:48 -0500 |
commit | dcb3a6afa19b04418066d223503c6c96f6e2fbbe (patch) | |
tree | 9486eaadd0f2c9febc1f0b2dc9f064ed0b589e7e | |
parent | 2cf5b031192277bac42b5e091d79543eb2ca153d (diff) | |
download | delivery_control-dcb3a6afa19b04418066d223503c6c96f6e2fbbe.tar.gz |
Use [un]stash rather than remote_host
-rw-r--r-- | deliver.groovy | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/deliver.groovy b/deliver.groovy index 127065a..f3b5ed2 100644 --- a/deliver.groovy +++ b/deliver.groovy @@ -6,7 +6,6 @@ // aux_packages // conda_installer_version // conda_version -// remote_host // output_dir def gen_specfiles(label) { @@ -51,6 +50,15 @@ def gen_specfiles(label) { stash name: "spec-stash-${label}", includes: "${delivery_pipeline}*.txt" } } + + node(label) { + stage('archive') { + // Retrieve the spec files from the nodes where they were created. + dir(output_dir) { + unstash "spec-stash-${label}" + } + } + } } @@ -62,7 +70,7 @@ node('master') { artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '4')), pipelineTriggers([])]) - stage('create specfiles') { + stage('deploy specfiles') { deleteDir() sh "cp -r ${WORKSPACE}@script/*.sh ." stash name: "script", includes: "*.sh" @@ -71,16 +79,4 @@ node('master') { MacOS: { gen_specfiles('OSX-10.11') } ) } - - stage('archive') { - // Retrieve the spec files from the nodes where they were created. - unstash "spec-stash-RHEL-6" - unstash "spec-stash-OSX-10.11" - hostname = remote_host.tokenize(".")[0] - withCredentials([usernamePassword(credentialsId: remote_credentials, - usernameVariable: 'USERNAME', - passwordVariable: 'PASSWORD')]) { - sh "rsync -avzr ${delivery_pipeline}*.txt ${USERNAME}@${hostname}:${output_dir}" - } - } } |