-
Notifications
You must be signed in to change notification settings - Fork 3
/
pipeline.extra-steps.gradle
77 lines (66 loc) · 1.57 KB
/
pipeline.extra-steps.gradle
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
environment {
FOO = 'extra'
}
blockStep 'Wait a minute!'
commandStep {
def xVal = 1
plugin 'foobar', [
name: 'Baz',
list: [
{
x = xVal
},
[
x: 2
]
]
]
}
commandStep {
command "run-unit-tests.sh"
environment {
// In standalone pipeline files we can access the root project via "project".
PROJECT_VERSION = project.version
}
// Common Buildkite plugins are also part of the DSL.
dockerCompose {
run 'unit'
// Passthrough variables
environment(
'FOO',
'BAR',
'BAZ',
)
}
}
blockStep(':rocket: Release!') {
prompt 'Fill out the details for this release'
branches '*.*.*'
textField 'Code Name', 'code-name', {
hint 'What\'s the code name for this release? :name_badge:'
defaultValue 'Flying Dolphin'
}
selectField('Stream', 'release-stream') {
hint 'Which release stream does this belong in? :fork:'
required()
multiple false
defaultValue 'beta'
option 'Beta', 'beta'
option 'Stable', 'stable'
}
}
triggerStep 'other-pipeline', {
branches 'master'
async true
build {
message ':rocket: Deploy to production!'
branch System.env.BUILDKITE_BRANCH
commit System.env.BUILDKITE_COMMIT
environment {
WIDEN_DOCKER_TAG_DEPLOY = System.env.WIDEN_DOCKER_TAG
}
metadata {
put 'release-version', '1.1'
}
}
}