forked from achoo/webMethods_VCS_Structure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
80 lines (71 loc) · 1.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!groovy
pipeline {
agent {
label 'w64' // this is Windows pipeline
}
tools {
ant "ant-1.9.7"
jdk "jdk-1.8"
}
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("Build") {
steps {
unstash 'scripts'
timeout(time:2, unit:'MINUTES') {
bat 'ant build'
archive 'build/assets/**'
}
stash(name:'assets', includes:'build/assets/**')
}
}
stage("Integration Test") {
steps {
unstash 'scripts'
timeout(time:10, unit:'MINUTES') {
bat 'ant up deploy test'
}
}
post {
success {
junit 'build/tests/**/TEST-*.xml'
}
unstable {
junit 'build/tests/**/TEST-*.xml'
}
}
}
stage("QA Testing") {
steps {
timeout(time:10, unit:'MINUTES') {
bat 'ant up deploy test -Denv=qa'
}
}
}
stage("Manual Testing and Approval") {
steps {
input "Ready to deploy to Production?"
}
}
stage("Deploy to Prod") {
steps {
timeout(time:10, unit:'MINUTES') {
bat 'ant up deploy -Denv=prod'
}
}
}
}
}