testflight: prevent pipeline from getting GC'd

Since we were calling `set_pipeline: self` but removing the job that set
the pipeline initially,  the pipeline would occasionally get archived
prior to triggering the "normal-job" job. This would cause fly to hang
forever since archived pipelines are effectively paused.

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
This commit is contained in:
Aidan Oldershaw 2020-08-04 21:06:48 -04:00
parent eb37872de6
commit 54bf772146
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@ resources:
pipeline.yml: |
---
jobs:
# The sp job is required so the pipeline is not GC'd after `set_pipeline: self`
- name: sp
plan:
- set_pipeline: self
file: does-not-matter
- name: normal-job
public: true
plan: