ci: 构建时动态指定revision

This commit is contained in:
CaptainB 2022-05-12 19:20:20 +08:00 committed by 刘瑞斌
parent d8908db912
commit fb4c1c10e4
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ pipeline {
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:/opt/mvnd/bin:$PATH
java -version
./mvnw clean package -DskipAntRunForJenkins --settings ./settings.xml
mvnd clean package -Drevision=${BRANCH_NAME} -DskipAntRunForJenkins --settings ./settings.xml
mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar)
'''
}