Commit 05cf9e0c authored by zhangdd's avatar zhangdd

test

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent 528184ed
pipeline{
states{
stage('Git Checkout'){
checkout([$class: 'GitSCM', branches: [[name: '$Branches']], doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Default', submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'a97e0ce1-814b-4e7d-832a-4ac3eed72506', url: 'git@gitlab.schbrain.com:zhangdongdong/test.git']]])
}
stage('Build') {
steps {
script {
TAG_SELECTOR = readMavenPom().getVersion()
}
echo("TAG_SELECTOR=${TAG_SELECTOR}")
}
}
}
script{
def pom = readMavenPom file: 'pom.xml'
echo "start echo pom"
echo "$pom"
echo "end echo pom"
}
stage('Maven Build'){
sh "/var/jenkins_home/tools/apache-maven-3.6.3/bin/mvn clean -U package -Dversion=${version} -Dmaven.test.skip=true -P${profiles}"
}
stage ('Post-Build') {
script {
currentBuild.description = "${version} - ${Branches}"
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment