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(pipelineRef): add resolvedExpectedArtifacts from pipelineTrigger to PipelineRefTrigger (backport #4816) #4817

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 12, 2024

Spel expressions with the function #triggerResolvedArtifact are throwing an evaluation error when pipelineRef feature is enabled in Orca. See: spinnaker/spinnaker#6993

The error happens because when we transform a PipelineTrigger into a PipelineRefTrigger we are not populating the resolvedExpectedArtifacts. As the resolvedExpectedArtifacts is empty the Spel function #triggerResolvedArtifact is not able to collect the artifact we want.

This small code change fix the issue.


This is an automatic backport of pull request #4816 done by Mergify.

…to PipelineRefTrigger (#4816)

* fix(pipelineRef): add resolvedExpectedArtifacts from pipelineTrigger to PipelineRefTrigger

* fix(pipelineRef): add tests around PipelineRefTrigger

---------

Co-authored-by: Jason <jason.mcintosh@harness.io>
(cherry picked from commit 3c65fe0)
@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for merge label Dec 13, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Dec 13, 2024
@mergify mergify bot merged commit b03087e into release-1.36.x Dec 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants