That sounds great! It would be pretty useful if we could access the Gerrit event attributes dynamically in the pipeline code. I don't personally have a need for it right now, but I could certainly incorporate it in the future. I'm not really knowledgable about Jenkins extensions, so how would it look from the pipeline perspective? A new object/map variable, or a variable whose value is a JSON string which has to be parsed into an object if required? So I guess there are two independent parts to this feature: a trait on the branch source which can filter changes, then an injection of extra info which can provide more granular stage management or step configuration. |