From 05cf9e0cb85cb954aee4bbf49a51fcbe6aea7e55 Mon Sep 17 00:00:00 2001 From: zhangdd <86431843@qq.com> Date: Thu, 1 Apr 2021 15:07:23 +0800 Subject: [PATCH] test Signed-off-by: zhangdd <86431843@qq.com> --- Jenkinsfile | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3bcf6c..3318396 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 -- GitLab