From de3dcc48ab39298899034d79e7ebaa7944091536 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Mon, 23 Oct 2023 12:31:29 -0700 Subject: [PATCH] removed the when, and removed unnecessary rm command --- Jenkinsfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e4b8940..41598a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,7 +62,6 @@ pipeline { stage('Build production deliverable') { steps { echo "BUILD RESULT: ${buildResult}" - when { equals expected: 'SUCCESS', actual: buildResult } catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { sh ''' #!/usr/local/bin/bash ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz" @@ -87,7 +86,6 @@ pipeline { stage('Clean up deliverable') { steps { sh 'rm -rf /tmp/url-shortener' - sh 'rm -rf *.tgz' } } }