From 755ebe355fcf8833502dad0ba2a2cb21c8dd2c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarek=20=C5=81ukow?= Date: Tue, 9 Oct 2018 17:35:48 +0200 Subject: [PATCH 1/4] Zuul test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e69de29..e2bf4d3 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,2 @@ +A title +========= From 2f2e6a7f2c9b70ef199a4117ebfa1402e6550da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarek=20=C5=81ukow?= Date: Tue, 9 Oct 2018 17:39:03 +0200 Subject: [PATCH 2/4] First Zuul job --- 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 a26b0fad7df503a064d7373089bb49d102aacf3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarek=20=C5=81ukow?= Date: Tue, 9 Oct 2018 17:43:08 +0200 Subject: [PATCH 3/4] Add dependency --- myjob.yaml | 2 ++ zuul.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/myjob.yaml b/myjob.yaml index b01d6c8..723e031 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/*/* diff --git a/zuul.yaml b/zuul.yaml index 9fad5b9..11e6272 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -8,3 +8,5 @@ - job: name: myjob run: myjob.yaml + required-projects: + - jluk-codi-org/anotherproject From 1e72358568e8dd586a43bc48488e064e51f7f860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarek=20=C5=81ukow?= Date: Tue, 9 Oct 2018 17:45:56 +0200 Subject: [PATCH 4/4] JSON lint --- myjob.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/myjob.yaml b/myjob.yaml index 723e031..5cca227 100644 --- a/myjob.yaml +++ b/myjob.yaml @@ -7,3 +7,7 @@ command: date - name: List projects shell: ls src/*/* + - name: Check JSON syntax in anotherproject + shell: python -m json.tool *.json + args: + chdir: src/github.com/jluk-codi-org/anotherproject