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'
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-20 16:57:47 +01:00
|
|
|
//stage('Test') {
|
|
|
|
|
// 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') {
|
2016-12-20 17:01:44 +01:00
|
|
|
input message: 'Deploy?', submitter: 'ziver'
|
|
|
|
|
sh 'ant deploy'
|
2016-12-12 17:41:31 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|