-
Notifications
You must be signed in to change notification settings - Fork 11
/
Jenkinsfile
47 lines (43 loc) · 1.06 KB
/
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
43
44
45
46
47
#!groovy
pipeline {
agent none
options {
buildDiscarder(logRotator(numToKeepStr:'10'))
disableConcurrentBuilds()
}
stages {
stage("Checkout") {
agent {
label 'master'
}
steps {
checkout scm
sh 'git submodule update --init'
stash(name:'scripts', includes:'**')
}
}
stage("Up") {
agent {
label 'w64' // this is Windows pipeline
}
tools {
ant "ant-1.9.7"
jdk "jdk-1.8"
}
steps {
unstash 'scripts'
timeout(time:20, unit:'MINUTES') {
bat 'ant up -Dcc=internal -Denv=internal'
}
}
post {
success {
junit 'build/tests/**/TEST-*.xml'
}
unstable {
junit 'build/tests/**/TEST-*.xml'
}
}
}
}
}