1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||||
|
pipeline{ |
||||||
|
agent any |
||||||
|
|
||||||
|
tools{ |
||||||
|
maven '3.8.6' |
||||||
|
jdk 'JDK 18' |
||||||
|
} |
||||||
|
|
||||||
|
stages { |
||||||
|
stage ('Initialize') { |
||||||
|
steps { |
||||||
|
sh ''' |
||||||
|
echo "PATH = ${PATH}" |
||||||
|
echo "M2_HOME = ${M2_HOME}" |
||||||
|
''' |
||||||
|
} |
||||||
|
} |
||||||
|
stage('Build'){ |
||||||
|
steps{ |
||||||
|
sh 'mvn -Dmaven.test.failure.ignore=true install test' |
||||||
|
} |
||||||
|
post{ |
||||||
|
success{ |
||||||
|
junit 'target/surefire-reports/**/*.xml' |
||||||
|
archiveArtifacts artifacts: 'target/*.jar, *.pom', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue