From 99010a863128124bd3f6b5c7c3f0f6a1c08585b3 Mon Sep 17 00:00:00 2001 From: Steffen Nitschke Date: Sun, 17 Jan 2021 17:54:09 +0100 Subject: [PATCH] print branchName --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 53761c3..1c9d801 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,7 +62,8 @@ pipeline { script { - if (env.BRANCH_NAME.startsWith('pr-')) { + sh "'${env.BRANCH_NAME}'" + if (${env.BRANCH_NAME}.startsWith('pr-')) { // git url: "git@gogs.informatik.hs-fulda.de:SteffenN/Multi-Chess.git", // credentialsId: 'jenkins_ssh_key',