pipeline-dev 新增configFile
This commit is contained in:
parent
4624e56835
commit
91439e1cf4
@ -25,7 +25,8 @@ pipeline {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn clean package -pl rc-auth -am -P dev -Dmaven.test.skip=true'
|
||||
configFileProvider([configFile(fileId: '0fcb2100-aec1-45ef-b3ea-64f2f911d462', variable: 'MAVEN_SETTINGS')]) {
|
||||
sh 'mvn clean package -pl rc-auth -am -P dev -Dmaven.test.skip=true -s $MAVEN_SETTINGS'
|
||||
sh 'ls ${JAR_TARGET_DIR}'
|
||||
script {
|
||||
JAR_FILE = "${sh(script:'ls -t ${JAR_TARGET_DIR}/${JAR_NAME} | head -n 1', returnStdout: true).trim()}"
|
||||
@ -36,6 +37,7 @@ pipeline {
|
||||
echo "---> Jar size: ${JAR_SIZE}"
|
||||
echo "---> Image name: ${BUILD_IMAGE}"
|
||||
echo "---> Image registry tag: ${IMAGE_REP_TAG}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build image') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user