mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 02:58:31 +08:00
ci: 构建时动态指定revision
This commit is contained in:
parent
d8908db912
commit
fb4c1c10e4
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -18,7 +18,7 @@ pipeline {
|
|||||||
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
|
||||||
export PATH=$JAVA_HOME/bin:/opt/mvnd/bin:$PATH
|
export PATH=$JAVA_HOME/bin:/opt/mvnd/bin:$PATH
|
||||||
java -version
|
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)
|
mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar)
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user