Update Jenkinsfile
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -94,12 +94,6 @@ docker run --rm \\
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// stage('Archive Artifacts') {
|
|
||||||
// steps {
|
|
||||||
// archiveArtifacts artifacts: 'html/**/*', fingerprint: true, allowEmptyArchive: true
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
stage('Upload to B2') {
|
stage('Upload to B2') {
|
||||||
when {
|
when {
|
||||||
expression { return params.B2_BUCKET_NAME != "" }
|
expression { return params.B2_BUCKET_NAME != "" }
|
||||||
@@ -111,7 +105,7 @@ docker run --rm \\
|
|||||||
string(credentialsId: 'b2-app-key', variable: 'B2_APPLICATION_KEY')
|
string(credentialsId: 'b2-app-key', variable: 'B2_APPLICATION_KEY')
|
||||||
]) {
|
]) {
|
||||||
sh '''
|
sh '''
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$(pwd)/html:/workspace/html" \
|
-v "$(pwd)/html:/workspace/html" \
|
||||||
-e B2_APPLICATION_KEY \
|
-e B2_APPLICATION_KEY \
|
||||||
-e B2_APPLICATION_KEY_ID \
|
-e B2_APPLICATION_KEY_ID \
|
||||||
@@ -122,6 +116,7 @@ docker run --rm \\
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|||||||
Reference in New Issue
Block a user