-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
42 lines (34 loc) · 1022 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pipeline{
agent any
stages {
stage('AntLib') {
steps {
echo "I will build Ant Lib on ${env.BRANCH_NAME}"
withEnv( ["ANT_HOME=${tool 'DefaultCam'}"] ) {
bat '%ANT_HOME%/bin/ant.bat -buildfile com.gregorbyte.buildxpages.ant/build.xml -DnotesProgDir=${env.NOTES_PROGDIR} compilejar'
}
}
}
stage('HeadlessPlugin') {
steps {
echo 'Now I will build plugin'
}
}
stage('Results') {
steps {
archive '**/BuildXPagesAntLib.jar'
}
}
}
post {
success {
emailext body: "BuildXPages Success ${currentBuild.currentResult}", subject: "BuildXPages ${currentBuild.currentResult}", to: '[email protected]'
}
changed {
emailext body: "BuildXPages ${currentBuild.currentResult}", subject: "BuildXPages ${currentBuild.currentResult}", to: '[email protected]'
}
failure {
emailext body: 'BuildXPages Failed', subject: "BuildXPages Failed", to: '[email protected]'
}
}
}