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

fix(check-pre-condition): CheckPrecondition doesn't evaluate expressi… #4681

Closed

Conversation

yashsaxena1503
Copy link
Contributor

@yashsaxena1503 yashsaxena1503 commented Mar 22, 2024

This PR includes the changes to fix the spinnaker/spinnaker#6933

Root cause:
If pipeline created from template, CheckPrecondition doesn't evaluate expression correctly after upstream stages get restarted
Fix:
Replace preconditionList with preconditionMap containing stage refId and preconditions. Modify the replace condition to replace pre-condition context with corresponding pre-condition stage context.

…on correctly after upstream stages get restarted
@spinnakerbot
Copy link
Contributor

Please delete the pull request instructions from the body of your pull request message.

The instructions start with the line:

We prefer small, well tested pull requests.

You can reopen your pull request when this has been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants