zallery/Jenkinsfile

33 lines
639 B
Text
Raw Normal View History

2016-12-12 17:44:37 +01:00
// Jenkinsfile (Pipeline Script)
2016-12-12 17:41:31 +01:00
node {
checkout scm
stage('Build') {
sh 'ant clean'
sh 'ant build'
}
stage('Test') {
2016-12-12 17:47:02 +01:00
//try {
// sh 'ant test'
//} finally {
// step([$class: 'JUnitResultArchiver', testResults: 'build/reports/*.xml'])
//}
2016-12-12 17:41:31 +01:00
}
stage('Package') {
sh 'ant package'
2016-12-19 15:56:46 +01:00
archiveArtifacts artifacts: 'build/release/Zallery.war', fingerprint: true
2016-12-12 17:41:31 +01:00
}
stage('Deploy') {
if (currentBuild.result == 'SUCCESS') {
input 'Deploy?', submitter 'Administrator'
sh 'ant deploy'
}
}
}