Skip to content

fix: propagation of attributes mode, fail_fast, and hooks from originalYamlString #41

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

Conversation

sandrogattuso
Copy link
Contributor

@sandrogattuso sandrogattuso commented Apr 5, 2021

Added business logic to propagate attributes mode, fail_fast, and hooks to the Spec section when using the originalYamlString setup.

@sandrogattuso sandrogattuso changed the title fix: propagation of attributes mode and fail_fast from originalYamlString fix: propagation of attributes mode, fail_fast, and hooks from originalYamlString Apr 16, 2021
@sandrogattuso sandrogattuso force-pushed the bugfix/originalYamlStringModeAndFailFast branch from 515053e to 03cd76e Compare April 21, 2021 21:54
case "mode":
pipeline.Spec.Mode = item.Value.(string)
case "fail_fast":
pipeline.Spec.FailFast = item.Value.(bool)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case if "fail_fast" is false, it will not be propagated to the pipeline spec, because the JSON marshaller will interpret "false" as "empty" and omit it

@alex-codefresh alex-codefresh merged commit 15916a6 into codefresh-io:master Apr 22, 2021
@sandrogattuso sandrogattuso deleted the bugfix/originalYamlStringModeAndFailFast branch May 29, 2021 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants