2017-01-20 18:33:52 +00:00
|
|
|
job "parameterized_job" {
|
2017-01-20 20:46:04 +00:00
|
|
|
parameterized {
|
2016-12-14 20:50:08 +00:00
|
|
|
payload = "required"
|
2017-01-26 05:13:18 +00:00
|
|
|
meta_required = ["foo", "bar"]
|
|
|
|
meta_optional = ["baz", "bam"]
|
2016-11-23 23:48:36 +00:00
|
|
|
}
|
|
|
|
group "foo" {
|
|
|
|
task "bar" {
|
|
|
|
driver = "docker"
|
|
|
|
resources {}
|
|
|
|
|
2017-01-26 05:06:16 +00:00
|
|
|
dispatch_payload {
|
2016-11-23 23:48:36 +00:00
|
|
|
file = "foo/bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|