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 066d713 commit a7af68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tvb_build/Jenkinsfile-TVBRun
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ pipeline {
def dockerFile = "${dockerContext}/Dockerfile-run"

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}")
def dockerImage = docker.build("${FULL_DOCKER_IMAGE_NAME}:${VERSION_TAG}", "--build-arg LAST_SHA='${LAST_SHA}' -f ${dockerFile} ${dockerContext}")
dockerImage.push()
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}")
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")
}
Expand Down

0 comments on commit a7af68d

Please sign in to comment.