26 lines
518 B
Groovy
26 lines
518 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('使用MAVNE构建') {
|
|
steps {
|
|
withMaven(maven: 'Maven3') {
|
|
sh 'mvn clean package -DskipTests'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('复制Jar包') {
|
|
steps {
|
|
sh 'cp target/rongshuo.jar ./rongshuo.jar'
|
|
}
|
|
}
|
|
|
|
stage('Docker Compose 发布') {
|
|
steps {
|
|
sh 'docker compose up --build -d'
|
|
}
|
|
}
|
|
}
|
|
}
|