when is outside the steps
Gitea Bucky/url-shortener/pipeline/head There was a failure building this commit Details

pull/34/head
Adam Townsend 2023-10-23 15:03:45 -07:00
parent 7c0f6eb603
commit 5cd296cb70
1 changed files with 5 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -70,12 +70,12 @@ pipeline {
} }
} }
stage('Build production deliverable') { stage('Build production deliverable') {
steps {
when { when {
expression { expression {
buildArtifact buildArtifact
} }
} }
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh ''' #!/usr/local/bin/bash sh ''' #!/usr/local/bin/bash
ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz" ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz"