message: Fix build logic in Jenkinsfile
  We should only run publishing step when building a release branch.
  Basic checking should be performed on all branches at all times.
diff: @@ -41,14 +41,19 @@ jobWrapper {
  isPullRequest = !!env.CHANGE_TARGET
  targetBranch = isPullRequest ? env.CHANGE_TARGET : "none"
  - println "Building branch: ${env.BRANCH_NAME}"
  + currentBranch = env.BRANCH_NAME
  + println "Building branch: ${currentBranch}"
  println "Target branch: ${targetBranch}"
  releaseTesting = targetBranch.contains('release')
  + isPublishingRun = false
  + if (gitTag) {
  + isPublishingRun = currentBranch.contains('release')
  + }
  echo "Pull request: ${isPullRequest ? 'yes' : 'no'}"
  echo "Release Run: ${releaseTesting ? 'yes' : 'no'}"
  - echo "Publishing Run: ${gitTag ? 'yes' : 'no'}"
  + echo "Publishing Run: ${isPublishingRun ? 'yes' : 'no'}"
  if (['master'].contains(env.BRANCH_NAME)) {
  // If we're on master, instruct the docker image builds to push to the
  @@ -57,7 +62,6 @@ jobWrapper {
  }
  }
  - if (isPullRequest) {
  stage('Checking') {
  parallelExecutors = [
  checkLinuxDebug : doCheckInDocker('Debug'),
  @@ -82,10 +86,8 @@ jobWrapper {
  }
  parallel parallelExecutors
  }
  - }
  -
  - if (gitTag && !isPullRequest) {
  + if (isPublishingRun) {
  stage('BuildPackages') {
  parallelExecutors = [
  buildMacOsDebug : doBuildMacOs('Debug', false),
  