diff --git a/Jenkinsfile b/Jenkinsfile index 47f3c25..b77663d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {