mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
Change docker tags in jenkins to use git commit instead of build_id
Build_id can repeat and cause problems
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -6,8 +6,8 @@ pipeline {
|
||||
script: "git --no-pager show -s --format='%an' ${GIT_COMMIT}"
|
||||
).trim()}"""
|
||||
|
||||
DOCKER_IMAGE_TAG = "panda:build-${env.BUILD_ID}"
|
||||
DOCKER_NAME = "panda-test-${env.BUILD_ID}"
|
||||
DOCKER_IMAGE_TAG = "panda:build-${env.GIT_COMMIT}"
|
||||
DOCKER_NAME = "panda-test-${env.GIT_COMMIT}"
|
||||
}
|
||||
stages {
|
||||
stage('Build Docker Image') {
|
||||
|
||||
Reference in New Issue
Block a user