add jenkins

This commit is contained in:
2026-06-17 21:27:48 +08:00
parent f650670693
commit d6f6527d58
3 changed files with 30 additions and 0 deletions
Vendored
+23
View File
@@ -0,0 +1,23 @@
pipeline {
agent any
stages {
stage('使用MAVNE构建') {
steps {
sh 'mvn clean package -DskipTests'
}
}
stage('复制Jar包') {
steps {
sh 'cp target/rongshuo.jar ./rongshuo.jar'
}
}
stage('Docker Compose 发布') {
steps {
sh 'docker compose up -d --build'
}
}
}
}
+6
View File
@@ -0,0 +1,6 @@
services:
rongshuo:
build: .
ports:
- "8088:8088"
restart: unless-stopped
+1
View File
@@ -0,0 +1 @@
http://jkadmin:11ed3ee565236054f1c9fd2623e75d80dc@118.25.129.153:3001/job/build-rongshuo/build?token=rongshuo1234