jenkin
This commit is contained in:
Vendored
+14
-14
@@ -2,11 +2,11 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('清理工作区') {
|
stage('清理工作空间') {
|
||||||
steps {
|
steps {
|
||||||
cleanWs() // 清理工作区
|
deleteDir()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('使用MAVNE构建') {
|
stage('使用MAVNE构建') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'Maven3') {
|
withMaven(maven: 'Maven3') {
|
||||||
@@ -21,14 +21,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Docker Compose 发布 root') {
|
// stage('Docker Compose 发布 root') {
|
||||||
steps {
|
// steps {
|
||||||
sh '''
|
// sh '''
|
||||||
cd /mydata/docker/rongshuo
|
// cd /mydata/docker/rongshuo
|
||||||
docker compose down
|
// docker compose down
|
||||||
docker compose up -d
|
// docker compose up -d
|
||||||
'''
|
// '''
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user