Skip to content

Commit

Permalink
data variable recovery; #352
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm committed Mar 25, 2024
1 parent b815be1 commit 8605099
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ pipeline {
}
// A new step to think about. What is our core metadata?
stage('Produce metadata') {
// CHECKPOINT: Recover key environmental variables.
environment {
START_DOW = sh(script: 'curl http://skyhook.berkeleybop.org/snapshot/metadata/dow.txt', , returnStdout: true).trim()
START_DATE = sh(script: 'curl http://skyhook.berkeleybop.org/snapshot/metadata/date.txt', , returnStdout: true).trim()
}
steps {

// Prep a copyover point, as the overhead for doing
Expand Down Expand Up @@ -794,6 +799,11 @@ pipeline {
}
stage('Publish') {
when { anyOf { branch 'release'; branch 'snapshot'; branch 'snapshot-post-fail'; branch 'master' } }
// CHECKPOINT: Recover key environmental variables.
environment {
START_DOW = sh(script: 'curl http://skyhook.berkeleybop.org/snapshot/metadata/dow.txt', , returnStdout: true).trim()
START_DATE = sh(script: 'curl http://skyhook.berkeleybop.org/snapshot/metadata/date.txt', , returnStdout: true).trim()
}
steps {
// Experimental stanza to support mounting the sshfs
// using the "hidden" skyhook identity.
Expand Down

0 comments on commit 8605099

Please sign in to comment.