gocd-contrib / gocd-groovy-dsl-config-plugin

Plugin to declare GoCD pipelines and environments configuration using a Groovy DSL
Apache License 2.0
11 stars 13 forks source link

Allow artifact fetch tasks to have an undefined pipeline #315

Closed chadlwilson closed 2 years ago

chadlwilson commented 2 years ago

Fixes #314

This is generally supposed to be optional, and GoCD should use the current pipeline if it's undefined, to make it easier to fetch an artifact from an earlier stage and job in the same pipeline. The YAML config plugin already works this way, so this should be safe.

Still to be validated/tested.

chadlwilson commented 2 years ago

Tested fine with GoCD 21.4.0 - able to create a task without pipeline defined, which correct fetches artifact from the current pipeline.