3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Digdagの変数定義をincludeする際にincludeされ側はインデントは不要

Last updated at Posted at 2017-02-08

http://qiita.com/pilot/items/98d464d5a4301baec19b の続き

parent.dig
_export:
  !include : params/params1.dig
    # サブディレクトリにないと"includes unknown keys"エラーになる
+task1:
  _export:
    !include : params/params2.dig
  echo>: ${a} ${b} ${c} ${d}
+task2:
  echo>: ${a} ${b}
    # ${c} ${d}は"not defined"エラーになる
params/params1.dig
a: aaa
b: bbb
params/params2.dig
c: ccc
d: ddd
$ digdag run parent.dig
2017-02-08 10:29:21 +0900: Digdag v0.9.3
~略~
2017-02-08 10:29:29 +0900 [INFO] (0016@+parent+task1): echo>: aaa bbb ccc ddd
aaa bbb ccc ddd
2017-02-08 10:29:30 +0900 [INFO] (0016@+parent+task2): echo>: aaa bbb
aaa bbb
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?