You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
717 B
30 lines
717 B
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 |
|
} |
|
} |
|
} |
|
} |
|
} |