23 lines
569 B
Plaintext
23 lines
569 B
Plaintext
[[- if has . "artifacts" ]]
|
|
[[- range $k, $v := .artifacts ]]
|
|
artifact {
|
|
source = [[ $v.source | toJSON ]]
|
|
destination = [[ $v.destination | toJSON ]]
|
|
[[- if has $v "options" ]]
|
|
options {
|
|
[[- range $opt, $val := $v.options ]]
|
|
[[ $opt ]] = [[ $val | toJSON ]]
|
|
[[- end ]]
|
|
}
|
|
[[- end ]]
|
|
[[- if has $v "headers" ]]
|
|
headers {
|
|
[[- range $header, $val := $v.headers ]]
|
|
[[ $header ]] = [[ $val | toJSON ]]
|
|
[[- end ]]
|
|
}
|
|
[[- end ]]
|
|
}
|
|
[[- end ]]
|
|
[[- end ]]
|