forked from eddiewebb/hugo-resume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
57 lines (55 loc) · 2.01 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
pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
post {
always {
jiraSendBuildInfo site: 'se-demo.atlassian.net'
}
}
}
stage('Deploy - Dev') {
steps {
echo 'Deploying to US East Dev 1'
}
post {
always {
jiraSendDeploymentInfo site: 'se-demo.atlassian.net', serviceIds: ['b:YXJpOmNsb3VkOmdyYXBoOjpzZXJ2aWNlLzJlNjQ1Y2Q0LTc4ZmEtMTFlYS04ZjMyLTBhNzdmM2Y0NTMwNC8xNWM3YmZjYy1lZWI2LTExZWEtOWFmZC0xMjhiNDI4MTk0MjQ='], environmentId: 'us-dev-1', environmentName: 'us-dev-1', environmentType: 'development'
}
}
}
/* waiting on plugin update
stage('Deploy - prod') {
steps {
echo 'Queueing...'
jiraSendDeploymentInfo(site:'se-demo.atlassian.net',
environmentId:'us-prd-1',
environmentName:'us-prd-1',
environmentType:'production',
// now we can define a state of build explicitly
state:"pending",
enableGate:true,
serviceIds: [
"b:YXJpOmNsb3VkOmdyYXBoOjpzZXJ2aWNlLzJlNjQ1Y2Q0LTc4ZmEtMTFlYS04ZjMyLTBhNzdmM2Y0NTMwNC8xNWM3YmZjYy1lZWI2LTExZWEtOWFmZC0xMjhiNDI4MTk0MjQ="]
)
}
}
stage("check gate") {
steps {
waitUntil {
input message: "Check for approval?"
checkGateStatus(site:'se-demo.atlassian.net', environmentId:'us-prd-1')
}
}
}
stage("deploy") {
steps {
echo "Deploying!"
}
}
*/
}
}