Commit 8a87f0de authored by daidekun's avatar daidekun

fixbugs

parent 76cc7345
......@@ -20,24 +20,16 @@ def call(body) {
body()
node {
try {
stage('Clean') {
deleteDir()
}
stage('Build') {
sh "ansible-playbook /etc/ansible/build.yml -e project_name=${projectName} -e repo_name=${repoName} -e branch_name=${branchName}"
}
stage('Clean') {
deleteDir()
}
stage('Build') {
sh "ansible-playbook /etc/ansible/build.yml -e project_name=${projectName} -e repo_name=${repoName} -e branch_name=${branchName}"
}
stage('Deploy') {
echo "deploy"
}
} catch (err) {
if (imageTag) {
_stage.clean_images(imageTag)
}
currentBuild.result = 'FAILED'
throw err
stage('Deploy') {
echo "deploy"
}
}
}
\ No newline at end of file
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