From 5f4209dbe8a7e0659a3f6bdfca3ecbcf909bd383 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Mon, 23 Oct 2023 15:10:16 -0700 Subject: [PATCH] testing skipping building the artifact at the end (and cleanup of it) --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b30a03d..afb8304 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -def buildArtifact = true +def buildArtifact = false pipeline { agent { label 'ruby && freebsd' } @@ -98,6 +98,11 @@ pipeline { } } stage('Clean up deliverable') { + when { + expression { + buildArtifact + } + } steps { sh 'rm -rf /tmp/url-shortener' }