add pre-steps.sh

This commit is contained in:
2025-07-15 15:16:40 +08:00
parent 481c997858
commit c17e1ad5c9
3 changed files with 20 additions and 12 deletions

8
Jenkinsfile vendored
View File

@ -8,6 +8,14 @@ pipeline {
}
stages {
stage('Pre') {
steps {
sshagent([env.SSH_CREDENTIALS_ID]) {
sh 'ssh alex@117.72.202.202 "bash /home/alex/alex-api/bin/pre-steps.sh"'
}
}
}
stage('Build') {
steps {
sh 'mvn clean package -DskipTests'