Skip to content

Commit

Permalink
Adapt Jenkinsfile syntax after Jenkins upgrade "" instead of ''
Browse files Browse the repository at this point in the history
  • Loading branch information
liadomide committed Nov 1, 2024
1 parent 0207fb2 commit 066d713
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tvb_build/Jenkinsfile-Linux
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pipeline {
stage ('Build TVB Distribution') {
steps {
unstash 'step1'
withDockerContainer(image: '${FULL_DOCKER_IMAGE_NAME}:${LATEST_TAG}') {
withDockerContainer(image: "${FULL_DOCKER_IMAGE_NAME}:${LATEST_TAG}") {
sh '''#!/bin/bash
source activate tvb-run
cd tvb_build
Expand Down
8 changes: 4 additions & 4 deletions tvb_build/Jenkinsfile-TVBRun
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ pipeline {
def dockerContext = "tvb_build/docker"
def dockerFile = "${dockerContext}/Dockerfile-run"

withDockerRegistry(credentialsId: 'tvb_on_docker_hub') {
withDockerRegistry(credentialsId: "tvb_on_docker_hub") {
def dockerImage = docker.build("${FULL_DOCKER_IMAGE_NAME}:'${VERSION_TAG}'", "--build-arg LAST_SHA='${LAST_SHA}' -f ${dockerFile} ${dockerContext}")
dockerImage.push()
dockerImage.push('latest')
dockerImage.push("latest")
}
withDockerRegistry(credentialsId: 'tvb_on_ebrains', url: 'https://docker-registry.ebrains.eu/v2') {
withDockerRegistry(credentialsId: "tvb_on_ebrains", url: "https://docker-registry.ebrains.eu/v2") {
def dockerImageE = docker.build("${FULL_DOCKER_IMAGE_NAME_EBRAINS}:'${VERSION_TAG}'", "--build-arg LAST_SHA='${LAST_SHA}' -f ${dockerFile} ${dockerContext}")
dockerImageE.push()
dockerImageE.push('latest')
dockerImageE.push("latest")
}
}
}
Expand Down

0 comments on commit 066d713

Please sign in to comment.