-
Notifications
You must be signed in to change notification settings - Fork 807
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
feat(core): Add SpEL Function Helpers for Resolved Trigger Artifacts #3118
feat(core): Add SpEL Function Helpers for Resolved Trigger Artifacts #3118
Conversation
Thanks for implementing this functionality @evansb! 🙇 Since the changes to the doc have already been merged, I'm wondering what's blocking the merge of this PR? |
I will review today |
.../spinnaker/orca/pipeline/expressions/functions/ArtifactExpressionFunctionProviderSpec.groovy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than the nit, LGTM happy to merge it - you can "fix" the comment before or after with a separate PR
cb7a789
to
eab1b35
Compare
Thanks, @evansb : FYI, there is currently an issue with expressions that doesn't inject the |
Hi @marchello2000 , just to make sure understand that correctly, does it mean that these expressions I introduced only work if the evaluation context is the stage (because they have So we can interpolate inside stages but not in pipeline notifications, for instance? |
Right now there is an issue where calling the expression from the stage (or anywhere) will fail, if today, this interpolation is broken for new functions so if you want it to work in, you would have to write the expression as (this is a regression from #3071) |
Got it, thanks a lot for the explanation |
FYI: This doesn't work for me: spinnaker/spinnaker#5105 |
Fixes spinnaker/spinnaker#4783
This MR adds the following helper functions to Spinnaker Pipeline Expressions
#triggerResolvedArtifact(name)
gets one resolved expected artifact that matches the providedname
. I usedname
instead oftype
here to make it consistent with#stage(..)
.#triggerResolvedArtifactByType(type)
is similar to#triggerResolvedArtifact
but usestype
of the artifact.