-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipeline.dhall
69 lines (64 loc) · 2.01 KB
/
pipeline.dhall
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
let bk = ../package.dhall
let Steps = bk.Steps
let PluginConfigValue = bk.PluginConfigValue
let JSON =
https://prelude.dhall-lang.org/v20.1.0/JSON/package.dhall
sha256:5f98b7722fd13509ef448b075e02b9ff98312ae7a406cf53ed25012dbc9990ac
let main = "master"
in [ Steps.Command
bk.Command::{
, label = Some ":scala:"
, env = Some (toMap { NODE_ENV = "test" })
, agents = Some { queue = "default" }
, commands = [ "echo yay" ]
, artifact_paths = Some [ "logs/**/*", "coverage/**/*" ]
, parallelism = Some 5
, timeout_in_minutes = Some 3
, retry = Some
( bk.Retry.Auto
{ automatic =
[ { exit_status = Some -1, limit = Some 2 }
, { exit_status = Some +143, limit = Some 2 }
]
}
)
}
, Steps.Command
bk.Command::{
, label = Some "Skipped job"
, commands = [ "broken.sh" ]
, skip = Some "Currently broken and needs to be fixed"
}
, bk.wait
, Steps.Command
bk.Command::{
, label = Some ":shipit: Deploy"
, commands = [ "echo deploy" ]
, branches = Some "master"
, concurrency = Some 1
, concurrency_group = Some "my-app/deploy"
, retry = Some
( bk.Retry.Manual
{ manual =
{ allowed = Some False
, reason = Some "Sorry, you can't retry a deployment"
, permit_on_passed = None Bool
}
}
)
}
, Steps.Input
bk.Input::{
, input = "Release?"
, fields =
[ bk.InputField.Select
bk.OptionField::{
, select = "y/n"
, key = "is-release"
, options = [ { label = "yes", value = "yes" } ]
}
, bk.InputField.Text
bk.TextField::{ text = "Release Name", key = "release-name" }
]
}
]