Commit 14f53561 authored by wentao.suo's avatar wentao.suo

fff

parent 445f993d
...@@ -39,27 +39,21 @@ def call(body) { ...@@ -39,27 +39,21 @@ def call(body) {
body.delegate = config body.delegate = config
body() body()
node ("192.168.4.36/baseimg/jenkins-slave:2018040203"){ node {
try { checkout scm
sh 'echo $MAKE_USER' try {
ansiColor('xterm') { docker.image("192.168.4.36/baseimg/jenkins-slave:2018040203"){
git_path = project_attr(systemName)["gitPath"]
stage('Checkout & Build') { if(git_path =="git@gitabc.xyqb.com:data-riskcontrol/urge-dispatcher.git"){
git_path = project_attr(systemName)["gitPath"] git_path = "git@gitabc.xyqb.com:data-riskcontrol/urge_dispatcher.git"
if(git_path =="git@gitabc.xyqb.com:data-riskcontrol/urge-dispatcher.git"){ }
git_path = "git@gitabc.xyqb.com:data-riskcontrol/urge_dispatcher.git"
} git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: git_path
withMaven {
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: git_path sh 'mvn clean package -P test -D maven.test.skip=true'
}
}catch (err) {
sh 'mvn clean package -P test -D maven.test.skip=true'
}
}
}
} catch (err) {
sleep 120 sleep 120
ansiColor('xterm') { ansiColor('xterm') {
if (imageTag) { if (imageTag) {
......
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