From e1d1c5ef4801b1d4a52c467fc9c1a4c86d67d81f Mon Sep 17 00:00:00 2001 From: Bartosz Pankowski Date: Mon, 15 Oct 2018 08:54:28 +0200 Subject: [PATCH 1/6] Edited README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e69de29..87bdc0d 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,2 @@ +Small edit + From 97bc1a87deadaedf86f56f547497cc58992a04b3 Mon Sep 17 00:00:00 2001 From: Bartosz Pankowski Date: Mon, 15 Oct 2018 09:02:22 +0200 Subject: [PATCH 2/6] Add myjob to Zuul config --- myjob.yaml | 7 +++++++ zuul.yaml | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 myjob.yaml diff --git a/myjob.yaml b/myjob.yaml new file mode 100644 index 0000000..b01d6c8 --- /dev/null +++ b/myjob.yaml @@ -0,0 +1,7 @@ +- hosts: all + tasks: + - name: This is a test task + debug: + msg: You should see me in the logs. + - name: Another test task + command: date diff --git a/zuul.yaml b/zuul.yaml index 73db574..9fad5b9 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -3,3 +3,8 @@ check: jobs: - noop + - myjob + +- job: + name: myjob + run: myjob.yaml From 5cc8ad589d228c557db97a86c901117180458861 Mon Sep 17 00:00:00 2001 From: Bartosz Pankowski Date: Mon, 15 Oct 2018 09:05:50 +0200 Subject: [PATCH 3/6] additional check --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 87bdc0d..71e8279 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ Small edit - +addon From 00be4a3e960f1c6e3321d7c64933665aaf2c2e6c Mon Sep 17 00:00:00 2001 From: Bartosz Pankowski Date: Mon, 15 Oct 2018 09:13:21 +0200 Subject: [PATCH 4/6] Added anotherproject to myjob --- myjob.yaml | 2 ++ zuul.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/myjob.yaml b/myjob.yaml index b01d6c8..58ff46d 100644 --- a/myjob.yaml +++ b/myjob.yaml @@ -5,3 +5,5 @@ msg: You should see me in the logs. - name: Another test task command: date + - name: list projects + shell: ls src/*/* \ No newline at end of file diff --git a/zuul.yaml b/zuul.yaml index 9fad5b9..1c255e3 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -8,3 +8,5 @@ - job: name: myjob run: myjob.yaml + required-projects: + - jluk-codi-org/anotherproject \ No newline at end of file From 6a1cc42798cb957de3deeee6a6115b216ba0b186 Mon Sep 17 00:00:00 2001 From: Bartosz Pankowski Date: Mon, 15 Oct 2018 09:19:10 +0200 Subject: [PATCH 5/6] Added json check --- myjob.yaml | 7 ++++++- zuul.yaml | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/myjob.yaml b/myjob.yaml index 58ff46d..1750d6a 100644 --- a/myjob.yaml +++ b/myjob.yaml @@ -1,3 +1,4 @@ +--- - hosts: all tasks: - name: This is a test task @@ -6,4 +7,8 @@ - name: Another test task command: date - name: list projects - shell: ls src/*/* \ No newline at end of file + shell: ls src/*/* + - name: Check JSON syntax in anotherproject + shell: python -m json.tool *.json + args: + chdir: src/github.com/jluk-codi-org/anotherproject diff --git a/zuul.yaml b/zuul.yaml index 1c255e3..090655b 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -1,3 +1,4 @@ +--- - project: name: jluk-codi-org/sampleproject check: @@ -9,4 +10,4 @@ name: myjob run: myjob.yaml required-projects: - - jluk-codi-org/anotherproject \ No newline at end of file + - jluk-codi-org/anotherproject From 7d796e67fd12eff20e1bb9d8f26227af0908cebd Mon Sep 17 00:00:00 2001 From: Bartosz Pankowski Date: Mon, 15 Oct 2018 15:38:20 +0200 Subject: [PATCH 6/6] ? --- myjob.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myjob.yaml b/myjob.yaml index 1750d6a..97eadff 100644 --- a/myjob.yaml +++ b/myjob.yaml @@ -6,7 +6,7 @@ msg: You should see me in the logs. - name: Another test task command: date - - name: list projects + - name: List projects shell: ls src/*/* - name: Check JSON syntax in anotherproject shell: python -m json.tool *.json