Jenkinsfile
All checks were successful
Gitea/FrameTour-BE/pipeline/head This commit looks good

This commit is contained in:
2025-06-30 17:51:34 +08:00
parent 529b52f19c
commit 99bf8d92f9

21
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,21 @@
pipeline {
agent any
environment {
JAVA_HOME = "/opt/openjdk21.0.7"
MAVEN_HOME = "/opt/apache-maven-3.9.9"
PATH = "${env.JAVA_HOME}/bin:${env.MAVEN_HOME}/bin:${env.PATH}"
}
stages {
stage('Build') {
steps {
sh 'mvn clean package -DskipTests=true'
}
}
}
post {
always {
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true, onlyIfSuccessful: true
publishGiteaAssets assets: 'target/*.jar', followSymlinks: false, onlyIfSuccessful: true
}
}
}