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 161c32f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions tvb_build/Jenkinsfile-TVBRun
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ pipeline {
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') {
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 161c32f

Please sign in to comment.