File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11node ("docker-light") {
22 def sourceDir = pwd()
33 try {
4+ def mavenLocalRepo = "$JENKINS_HOME/maven-local-repositories/executor-$EXECUTOR_NUMBER"
45 stage("Clean up") {
56 step([$class: 'WsCleanup'])
7+ sh "rm -rf $mavenLocalRepo"
68 }
79 stage("Checkout Code") {
810 checkout scm
911 }
10- stage("Maven Build") {
12+ stage("Build") {
13+ withMaven(maven: "Basis",
14+ mavenLocalRepo: mavenLocalRepo,
15+ publisherStrategy: "EXPLICIT") {
16+ sh "mvn clean verify"
17+ }
18+
19+ }
20+ stage("Test with Docker") {
1121 withSonarQubeEnv {
1222 mySonarOpts="-Dsonar.login=${env.SONAR_AUTH_TOKEN} -Dsonar.host.url=${env.SONAR_HOST_URL}"
1323 if ("${env.CHANGE_BRANCH}" != "null") {
Original file line number Diff line number Diff line change 11node (" docker-light" ) {
22 def SOURCEDIR = pwd()
33 try {
4+ def mavenLocalRepo = " $JENKINS_HOME /maven-local-repositories/executor-$EXECUTOR_NUMBER "
45 stage(" Clean up" ) {
56 step([$class : ' WsCleanup' ])
7+ sh " rm -rf $mavenLocalRepo "
68 }
79 stage(" Checkout Code" ) {
810 checkout scm
911 }
12+ stage(" Build" ) {
13+ withMaven(maven : " Basis" ,
14+ mavenLocalRepo : mavenLocalRepo,
15+ publisherStrategy : " EXPLICIT" ) {
16+ sh " mvn clean verify"
17+ }
18+
19+ }
1020 stage(" Test with Docker" ) {
1121 echo " ${ env.ALT_URL} "
1222 def useUrl = (" ${ env.ALT_URL} " == " null" ) ? " ${ env.BINDING_TEST_URL} " : " ${ env.ALT_URL} "
You can’t perform that action at this time.
0 commit comments