From 161c32fcf843c3865ec49894fe70f1c20bfb44f8 Mon Sep 17 00:00:00 2001 From: liadomide Date: Fri, 1 Nov 2024 22:08:43 +0200 Subject: [PATCH] Adapt Jenkinsfile syntax after Jenkins upgrade "" instead of '' --- tvb_build/Jenkinsfile-Linux | 2 +- tvb_build/Jenkinsfile-TVBRun | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tvb_build/Jenkinsfile-Linux b/tvb_build/Jenkinsfile-Linux index 31dbc049de..e25c9d746f 100644 --- a/tvb_build/Jenkinsfile-Linux +++ b/tvb_build/Jenkinsfile-Linux @@ -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 diff --git a/tvb_build/Jenkinsfile-TVBRun b/tvb_build/Jenkinsfile-TVBRun index 3098d4d487..e69b5354f6 100644 --- a/tvb_build/Jenkinsfile-TVBRun +++ b/tvb_build/Jenkinsfile-TVBRun @@ -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") } } }