From 86050999490b3fbb2a415219cc52d09d4a64e06c Mon Sep 17 00:00:00 2001 From: Seth Carbon Date: Mon, 25 Mar 2024 14:02:20 -0700 Subject: [PATCH] data variable recovery; #352 --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 286f36e..c19cd7c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 @@ -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.