Browse Source

Adding Jenkinsfile

master
LO Kam Tao Leo 3 years ago
parent
commit
48f105241c
  1. 30
      Jenkinsfile

30
Jenkinsfile vendored

@ -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…
Cancel
Save