[api] Jenkinsfile.pjt 작업중
This commit is contained in:
+4
-7
@@ -10,7 +10,6 @@ pipeline {
|
||||
// ===== Registry =====
|
||||
REGISTRY_HOST = "registry.pjt.kr"
|
||||
IMAGE_REPO = "alist/api"
|
||||
IMAGE_TAG = ""
|
||||
DOCKER_CRED = "docker-registry-cred" // ← Jenkins Credentials ID
|
||||
}
|
||||
|
||||
@@ -31,14 +30,12 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('3) image tag create') {
|
||||
stage('3) image tab create') {
|
||||
steps {
|
||||
script {
|
||||
env.IMAGE_TAG = sh(
|
||||
script: 'echo "${BUILD_NUMBER}-$(git rev-parse --short HEAD)"',
|
||||
returnStdout: true
|
||||
).trim()
|
||||
|
||||
env.SHORT_SHA = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim()
|
||||
echo "SHORT_SHA = ${env.SHORT_SHA}"
|
||||
env.IMAGE_TAG = "${env.BUILD_NUMBER}-${env.SHORT_SHA}"
|
||||
echo "IMAGE_TAG = ${env.IMAGE_TAG}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user