From ecab2fcfa90158bedd48a32ecc81b0f6ed032a84 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 11 Apr 2023 16:12:30 +0200 Subject: [PATCH] Jenkinsfile: correct the branch and docker tag --- Jenkinsfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d4900c3..e1c9a12 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,15 +12,14 @@ pipeline { imagename = "d4science/r-studio-test" registryCredential = 'e348bfab-5580-4db6-b0e0-d854966bde08' dockerImage = '' - git_url='https://code-repo.d4science.org/gCubeSystem/r-studio-test.git' + git_url='https://code-repo.d4science.org/gCubeSystem/rstudio-d4science.git' } stages { - stage('Cloning Git') { - steps { - git([url: git_url, branch: 'master', credentialsId: '88b54962-1c0e-49cb-8155-22276860f346']) - - } - } + // stage('Cloning Git') { + // steps { + // git([url: git_url, branch: '2023-03-R4-2', credentialsId: '88b54962-1c0e-49cb-8155-22276860f346']) + // } + // } stage('Building image') { steps{ script { @@ -33,8 +32,7 @@ pipeline { script { docker.withRegistry( '', registryCredential ) { dockerImage.push("$BUILD_NUMBER") - dockerImage.push('latest') - + dockerImage.push('2023-03-R4-2') } } } @@ -42,7 +40,7 @@ pipeline { stage('Remove Unused docker image') { steps{ sh "docker rmi $imagename:$BUILD_NUMBER" - sh "docker rmi $imagename:latest" + sh "docker rmi $imagename:2023-03-R4-2" } }