Update Jenkinsfile

This commit is contained in:
2025-11-25 13:33:44 -06:00
parent 3f2ecebb08
commit 7bda4a1155

19
Jenkinsfile vendored
View File

@@ -94,12 +94,6 @@ docker run --rm \\
}
}
// stage('Archive Artifacts') {
// steps {
// archiveArtifacts artifacts: 'html/**/*', fingerprint: true, allowEmptyArchive: true
// }
// }
stage('Upload to B2') {
when {
expression { return params.B2_BUCKET_NAME != "" }
@@ -111,17 +105,18 @@ docker run --rm \\
string(credentialsId: 'b2-app-key', variable: 'B2_APPLICATION_KEY')
]) {
sh '''
docker run --rm \
-v "$(pwd)/html:/workspace/html" \
-e B2_APPLICATION_KEY \
-e B2_APPLICATION_KEY_ID \
backblazeit/b2:latest \
b2v4 sync /workspace/html/ "b2://${B2_BUCKET_NAME}/"
docker run --rm \
-v "$(pwd)/html:/workspace/html" \
-e B2_APPLICATION_KEY \
-e B2_APPLICATION_KEY_ID \
backblazeit/b2:latest \
b2v4 sync /workspace/html/ "b2://${B2_BUCKET_NAME}/"
'''
}
}
}
}
}
post {
success {