Jenkins 构建。

This commit is contained in:
jiangdingxuan
2025-08-19 15:16:42 +08:00
parent 319d873899
commit bf58076cfc
2 changed files with 59 additions and 0 deletions

39
yudao-server/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,39 @@
#!/usr/bin/env groovy
pipeline {
agent any
tools {
maven 'maven3.6.2'
jdk 'jdk17'
}
stages {
stage('build') {
steps {
script {
sh "mvn clean package -P module-bpm -D maven.test.skip=true"
}
dir('yudao-server') {
sh "docker build -t $IMAGE_PATH ."
}
}
}
stage('deploy') {
steps {
script {
sh "docker push $IMAGE_PATH"
}
}
}
}
post {
success {
sh """
curl -X POST "${params.API_URL}/success"
"""
}
failure {
sh """
curl -X POST "${params.API_URL}/failure"
"""
}
}
}