message: Do not use env vars as they lead to duplicated builds during parallel steps
diff: @@ -986,23 +986,15 @@ def buildFeatureBranch(String dockerfile, String tag) {
  }
  def buildBranch(String dockerfile, String dockerTag, String gitTag) {
  - env.DOCKERFILE = dockerfile
  - env.DOCKERTAG = dockerTag
  - env.GITTAG = gitTag
  withDockerRegistry(credentialsId: '051efa8c-aebd-40f7-9cfd-0053c413266e') {
  - sh(
  - script: '''
  - docker build \\
  - -f ${DOCKERFILE} \\
  - --rm \\
  - --build-arg GITHUB_TOKEN=${GITHUB_TOKEN} \\
  - --build-arg SPECTRECOIN_REPOSITORY=spectre \\
  - --build-arg SPECTRECOIN_RELEASE=${GITTAG} \\
  - --build-arg REPLACE_EXISTING_ARCHIVE=--replace \\
  - -t ${DOCKERTAG} \\
  - .
  - '''
  - )
  + sh "docker build \\\n" +
  + "-f ${dockerfile} \\\n" +
  + "--rm \\\n" +
  + "--build-arg GITHUB_TOKEN=${GITHUB_TOKEN} \\\n" +
  + "--build-arg SPECTRECOIN_RELEASE=${gitTag} \\\n" +
  + "--build-arg REPLACE_EXISTING_ARCHIVE=--replace \\\n" +
  + "-t ${dockerTag} \\\n" +
  + "."
  }
  }
  