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

runtime error when using yaml anchor <<: #63

Closed
vaibhavparnalia opened this issue Feb 6, 2018 · 4 comments
Closed

runtime error when using yaml anchor <<: #63

vaibhavparnalia opened this issue Feb 6, 2018 · 4 comments

Comments

@vaibhavparnalia
Copy link

vaibhavparnalia commented Feb 6, 2018

image
runtime; - Unexpected error when handling plugin response java.lang.NullPointerException

image

deploy-dev: &deploy_pipeline
group: aws
materials: &deploy_pipeline_materials
git-a: *baybridge
git-bb: *baybridge-apps
create-ami:
pipeline: initialize
stage: xxx
deploy-qa:
group: aws
materials:
<<: *deploy_pipeline_materials
deploy-dev:
pipeline: deploy-dev
stage: xxx

@shrykull
Copy link

I got pretty much the same problem condensed on a slightly smaller config. any updates?

common:
  default_environment: &default_environment
    ANSIBLE_ACDC_TOMCAT_PROTOCOL: https
pipelines:
  myPipeline:
    environment_variables:
      <<: *default_environment
      ANSIBLE_TOMCAT_PORT: 10443

The error reads Failed to parse pipeline myPipeline; java.util.HashMap cannot be cast to java.lang.String

@benedikt-haug
Copy link

Failed to parse pipeline myPipeline; java.util.HashMap cannot be cast to java.lang.String

I'm also struggling with this. Are we just using the tooling wrong or is this currently unsupported? Would need to define 10 lookups instead of 1 per pipeline.

@tomzo
Copy link
Owner

tomzo commented May 24, 2018

No merge syntax is not supported due to limitations of the parser. As suggested in #72 replacing parser should fix this.

@chadlwilson
Copy link
Collaborator

Dupe of #55

@chadlwilson chadlwilson closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2024
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

5 participants