Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pipeline parameters in material definitions #29

Open
ashishreddyv opened this issue Jul 30, 2020 · 1 comment
Open

Support pipeline parameters in material definitions #29

ashishreddyv opened this issue Jul 30, 2020 · 1 comment

Comments

@ashishreddyv
Copy link

I'm trying to use pipeline parameters for defining the material with git path material plugin. Here's how my definition looks for a material:

my_pipeline:
  group: build
  parameters:
    git-url: [email protected]:test/test-gocd.git
    project-path: sub_pj1
 materials:
   dev-material:
     plugin_configuration:
       id: git-path
     options:
       url: "#{git-url}"
       path: "#{project-path}"
       branch: develop
     destination: my_project

I see a 128 error code when GoCD is trying to parse this pipeline config.

The default git material that gocd has allows this type of material declaration but not the git path material.
This is particularly useful for projects that have huge number of microservices in which we can use yaml aliases for the materials and just define the overriding parameters.

@chadlwilson
Copy link
Collaborator

Hi @ashishreddyv - have you tried this on GoCD 20.8.0+?

If this is still an issue, I suspect this is probably similar to the issue in #28 - GoCD doesn't interpolate the values of variables for custom pluggable materials like this plugin before passing them to the plugin. If so, this would need to be addressed by GoCD itself.

@chadlwilson chadlwilson changed the title Using pipeline parameters for material definition Support pipeline parameters in material definitions Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants