diff --git a/Jenkinsfile b/Jenkinsfile index c3bcf6c2147c3444d778f89d0295a30068509ba6..3318396e3b465ab25a7ecf81c9a919dc8b426bde 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,42 +1,13 @@ 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