Commit ba8504d6 authored by daidekun's avatar daidekun

systemName

parent 570654f6
......@@ -15,7 +15,7 @@ def build(namespace, systemName, contextDir) {
sh "ansible-playbook /etc/ansible/build.yml -e prefix=${namespace} -e project_name=pre.${systemName} -e workspace=${contextDir} -vv"
}
def docker_build_and_push(buildNumber, branchName, harborGroup, contextDir) {
def docker_build_and_push(buildNumber, branchName, harborGroup, systemName, contextDir) {
/*分支名中非法字符统一替换为下划线*/
imageTag = "192.168.4.36/${harborGroup}/${systemName}:${safeBranchName}-${buildNumber}"
regex = "[`,./;\\[\\]&<>?:\"()|-]+"
......
......@@ -39,7 +39,7 @@ def call(body) {
}
stage('Docker Build And Push') {
_stage.docker_build_and_push(buildNumber, branchName, harborGroup, contextDir)
_stage.docker_build_and_push(buildNumber, branchName, harborGroup, systemName, contextDir)
}
stage('Deploy') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment