From 0b82f2b1ab2ed63de83d9c00b9431199755e2ec7 Mon Sep 17 00:00:00 2001 From: Emilia Date: Tue, 30 Jan 2024 20:55:09 -0500 Subject: [PATCH] See last commit --- Jenkinsfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0bff50a..a56b3ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,14 +3,8 @@ pipeline { stages { stage('Setup') { - if (env.BRANCH_NAME == 'main') { - environment { - OUTPUT_DIR = 'plate-tool' - } - } else { - environment { - OUTPUT_DIR = 'plate-tool-beta' - } + environment { + OUTPUT_DIR = "${env.BRANCH_NAME == "main" ? "plate-tool" : "plate-tool-beta"}" } } stage('Build') {