30 lines
579 B
Groovy
Executable file
30 lines
579 B
Groovy
Executable file
// Jenkinsfile (Pipeline Script)
|
|
node {
|
|
checkout scm
|
|
|
|
stage('Build') {
|
|
sh 'ant clean'
|
|
sh 'ant build'
|
|
}
|
|
|
|
//stage('Test') {
|
|
// try {
|
|
// sh 'ant test'
|
|
// } finally {
|
|
// step([$class: 'JUnitResultArchiver', testResults: 'build/reports/*.xml'])
|
|
// }
|
|
//}
|
|
|
|
|
|
stage('Package') {
|
|
sh 'ant package'
|
|
archiveArtifacts artifacts: 'build/release/Zallery.war', fingerprint: true
|
|
}
|
|
|
|
|
|
stage('Deploy') {
|
|
input message: 'Deploy?', submitter: 'ziver'
|
|
sh 'ant deploy'
|
|
}
|
|
}
|
|
|