testing skipping building the artifact at the end (and cleanup of it)
Gitea Bucky/url-shortener/pipeline/head This commit looks good Details

pull/34/head
Adam Townsend 2023-10-23 15:10:16 -07:00
parent fbba67a9bd
commit 5f4209dbe8
1 changed files with 6 additions and 1 deletions

7
Jenkinsfile vendored
View File

@ -1,4 +1,4 @@
def buildArtifact = true def buildArtifact = false
pipeline { pipeline {
agent { label 'ruby && freebsd' } agent { label 'ruby && freebsd' }
@ -98,6 +98,11 @@ pipeline {
} }
} }
stage('Clean up deliverable') { stage('Clean up deliverable') {
when {
expression {
buildArtifact
}
}
steps { steps {
sh 'rm -rf /tmp/url-shortener' sh 'rm -rf /tmp/url-shortener'
} }