From 6177707c73425cf2d89577b675c98457089e4c1a Mon Sep 17 00:00:00 2001 From: Dylan Simon Date: Tue, 16 Apr 2019 17:41:46 -0400 Subject: [PATCH] [jenkins] check branch name in simpler way that works --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index dea1a782..b7d3e649 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -93,7 +93,7 @@ try { /* Publish results */ stage("publish") { timeout(time: 1, unit: 'HOURS') { def commit = sh(returnStdout: true, script: "git rev-parse HEAD").trim() - def release = env.BRANCH_NAME.toCharacter().isLetter() || sh(returnStdout: true, script: "git describe --exact-match HEAD || true").trim() + def release = env.BRANCH_NAME == "master" || env.BRANCH_NAME == "unstable" || sh(returnStdout: true, script: "git describe --exact-match HEAD || true").trim() def workDir = pwd() /* Update documention on gh-pages branch */ dir("$workDir/gh-pages") {