V10Lift/Jenkinsfile

34 lines
950 B
Text
Raw Normal View History

2020-02-25 14:07:24 +00:00
pipeline {
2020-02-25 14:33:36 +00:00
agent any
tools {
2020-02-25 14:38:10 +00:00
maven 'Maven 3.6.3'
2020-02-25 14:33:36 +00:00
jdk 'jdk8'
2020-02-25 14:07:24 +00:00
}
2020-02-25 14:33:36 +00:00
stages {
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}
2020-02-25 14:07:24 +00:00
2020-02-25 14:33:36 +00:00
stage ('Build') {
steps {
sh 'mvn -Dmaven.test.failure.ignore=true install'
}
2020-02-25 14:54:39 +00:00
post {
always {
echo 'Archiving coverage results...'
jacoco(execPattern: '**/**.exec', classPattern: '**/classes', sourcePattern: '**/src/main/java')
echo 'Archiving test results...'
junit 'target/surefire-reports/*.xml'
echo 'Archiving artifacts...'
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true
}
}
2020-02-25 14:33:36 +00:00
}
}
2020-02-25 14:10:44 +00:00
}