Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

[Bug] Resource does not allow for an empty list of pipelines to be put #62

Open
ari-becker opened this issue Jul 17, 2019 · 0 comments
Open
Labels

Comments

@ari-becker
Copy link

For the following config:

---
jobs:
- name: set-my-pipelines
  plan:
  - put: my-pipelines
    params:
      pipelines_file: path/to/pipelines/file.yaml

where the contents of path/to/pipelines/file.yaml are:

---
pipelines: []

Expected behavior: The put step silently succeeds, having done nothing because it was configured to do nothing.

Actual behavior: The put step fails with the following error: pipelines must be provided via either pipelines or pipelines_file

Context / use-case: we have a meta-pipeline which dynamically generates pipeline configurations for a variety of Concourse targets. Sometimes, only some of the Concourse targets have configurations generated for them, leaving the resources for the other Concourse targets with nothing to put. When this happens, it is intentional, and the build should not be failed.

@xtremerui xtremerui added the bug label May 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants