Skip to content

Commit

Permalink
copy relevant files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjucker committed Nov 14, 2024
1 parent 31e219b commit 8baaf4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jenkins/RemoteExtraction
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ pipeline {
post {
success {
sh "cp extpar/*.log ${WORKSPACE}/output/logs"
sh "cp extpar/external_parameter.nc ${WORKSPACE}/output/."
sh "cp icontools/*.nc ${WORKSPACE}/output/."
sh "cp icontools/*.html ${WORKSPACE}/output/."
sh "zip -r output.zip output"
sh "python3 src/copy_zip.py --zip-file output.zip --destination ${https_public_root} --hash-file ${WORKSPACE}/hash.txt"
withCredentials([string(credentialsId: 'd976fe24-cabf-479e-854f-587c152644bc', variable: 'GITHUB_AUTH_TOKEN')]) {
Expand All @@ -90,6 +93,9 @@ pipeline {
}
failure {
sh "cp extpar/*.log ${WORKSPACE}/output/logs"
sh "cp extpar/external_parameter.nc ${WORKSPACE}/output/. || true"
sh "cp icontools/*.nc ${WORKSPACE}/output/. || true"
sh "cp icontools/*.html ${WORKSPACE}/output/. || true"
sh "zip -r output.zip output"
sh "python3 src/copy_zip.py --zip-file output.zip --destination ${https_public_root} --hash-file ${WORKSPACE}/hash.txt"
withCredentials([string(credentialsId: 'd976fe24-cabf-479e-854f-587c152644bc', variable: 'GITHUB_AUTH_TOKEN')]) {
Expand All @@ -99,6 +105,9 @@ pipeline {
}
aborted {
sh "cp extpar/*.log ${WORKSPACE}/output/logs"
sh "cp extpar/external_parameter.nc ${WORKSPACE}/output/. || true"
sh "cp icontools/*.nc ${WORKSPACE}/output/. || true"
sh "cp icontools/*.html ${WORKSPACE}/output/. || true"
sh "zip -r output.zip output"
sh "python3 src/copy_zip.py --zip-file output.zip --destination ${https_public_root} --hash-file ${WORKSPACE}/hash.txt"
withCredentials([string(credentialsId: 'd976fe24-cabf-479e-854f-587c152644bc', variable: 'GITHUB_AUTH_TOKEN')]) {
Expand Down

0 comments on commit 8baaf4d

Please sign in to comment.