From c027d7467b406a013c56e4c4166e3b10140aef9c Mon Sep 17 00:00:00 2001 From: Taylor Silva Date: Tue, 14 Jul 2020 15:16:52 -0400 Subject: [PATCH] Update set-pipeline example The first job should update the pipeline that the job belongs to. If this doesn't happen then any changes to the pipeline won't take affect until a second build is triggered Signed-off-by: Taylor Silva --- pipelines/set-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pipelines/set-pipelines.yml b/pipelines/set-pipelines.yml index 45a4f8f..f7883e6 100644 --- a/pipelines/set-pipelines.yml +++ b/pipelines/set-pipelines.yml @@ -7,13 +7,20 @@ resources: uri: https://github.com/concourse/examples jobs: - - name: set-example-pipelines + # update this pipeline before updating child pipelines + - name: set-self public: true plan: - get: concourse-examples trigger: true - set_pipeline: set-pipelines file: concourse-examples/pipelines/set-pipelines.yml + - name: set-example-pipelines + public: true + plan: + - get: concourse-examples + trigger: true + passed: [set-self] - set_pipeline: job file: concourse-examples/pipelines/hello-world.yml - set_pipeline: separate-task-config