Added Jenkinsfile
This commit is contained in:
parent
9fdc6f62bb
commit
b38ffdc43d
1 changed files with 32 additions and 0 deletions
32
Jenkinsfile
vendored
Executable file
32
Jenkinsfile
vendored
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
// 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/Zutil.jar', fingerprint: true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//stage('Deploy') {
|
||||||
|
// if (currentBuild.result == 'SUCCESS') {
|
||||||
|
// input 'Deploy?', submitter 'Administrator'
|
||||||
|
// sh 'ant deploy'
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue