From 6b086658ebcd42dddaa33e2730726f5ab00dce48 Mon Sep 17 00:00:00 2001 From: Benoit TELLIER Date: Sat, 25 Apr 2026 22:27:23 +0200 Subject: [PATCH] [ENHANCEMENT] Split PRs from main docker images (#832) --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7d88224..87901e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -93,18 +93,18 @@ pipeline { } } - def dockerTag = "pr-${env.CHANGE_ID}" + def dockerTag = "${env.CHANGE_ID}" env.DOCKER_TAG = dockerTag echo "Docker tag: ${dockerTag}" sh 'npm run build' - sh 'docker build -t linagora/twake-calendar-web:$DOCKER_TAG .' + sh 'docker build -t linagora/twake-calendar-web-pr:$DOCKER_TAG .' sh 'echo $DOCKER_HUB_CREDENTIAL_PSW | docker login -u $DOCKER_HUB_CREDENTIAL_USR --password-stdin' - sh 'docker push linagora/twake-calendar-web:$DOCKER_TAG' + sh 'docker push linagora/twake-calendar-web-pr:$DOCKER_TAG' sh """ HTTP_STATUS=\$(curl -s -o /tmp/gh_comment_response.json -w "%{http_code}" -X POST \\ -H "Authorization: token \${GITHUB_CREDENTIAL_PSW}" \\ -H "Content-Type: application/json" \\ - -d "{\\"body\\": \\"Docker image published for this PR: linagora/twake-calendar-web:${dockerTag}\\"}" \\ + -d "{\\"body\\": \\"Docker image published for this PR: linagora/twake-calendar-web-pr:${dockerTag}\\"}" \\ "https://api.github.com/repos/linagora/twake-calendar-frontend/issues/\${CHANGE_ID}/comments") if [ "\$HTTP_STATUS" -lt 200 ] || [ "\$HTTP_STATUS" -ge 300 ]; then echo "WARNING: GitHub API comment failed with HTTP \$HTTP_STATUS"