-
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(pipeline/configuration): Updated pipeline level configuration that introduces a new property named metadata. #4808
base: master
Are you sure you want to change the base?
Conversation
…at introduces a new property named metadata. SpEL processing pipeline.metadata so that it is resolved/ready when referenced.
What's the motivation for this change? |
|
OK, I think I understand at least part of this, and I agree it's nice to be able to have a arbitrary blob make it from pipeline config to execution. And The part I'm a little stuck on is the change to EvaluateVariablesStage. If you're saying that the idea is to be able to reference |
"I'm waffling on the need for a feature flag in case people already have metadata in their config and don't need/want/expect it to make it the execution." If you think this is necessary/mandatory I can add it , let me know. "It seems harmless, but increasing the size of executions can cause pain." I understand and I was also concerned about this. So far no issues in our workloads. "The part I'm a little stuck on is the change to EvaluateVariablesStage. If you're saying that the idea is to be able to reference pipeline.metadata without an EvaluateVariablesStage, then why do we need a code change there?": It's the other way around. It is needed for the case where pipeline.metadata has SpEL expressions and pipeline.metadata is referenced in a EvaluateVariable stage. The changes in EvaluateVariableStage run pipeline.metadata through the SpEL processor so that it is resolved in case it is referenced somewhere in the stage. |
Yes please.
Aaah, so what if something else references pipeline.metadata? Is this where we get back to needed nested SpEL expression evaluation? If so I'd rather pursue that than treating EvaluateVariablesStage as a special case. |
SpEL processing pipeline.metadata so that it is resolved/ready when referenced.