完善jenkins

This commit is contained in:
2023-08-04 15:14:12 +08:00
parent 4aa08dd3f2
commit f60c16fa6c
6 changed files with 4671 additions and 6 deletions

23
Jenkinsfile vendored
View File

@@ -26,6 +26,29 @@ pipeline{
}
stage("关闭 docker-compose"){
steps{
sh "docker-compose --project-directory docker/${env.BRANCH_NAME} down || true"
}
}
stage("启动 docker-compose"){
steps{
sh "docker-compose --project-name ${currentBuild.projectName}/${env.BRANCH_NAME} --project-directory docker/${env.BRANCH_NAME} -d up"
}
}
}