Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[JENKINS-37324] Retain script argument to the batch/shell steps so we can retrieve it upon demand #22
Implements JENKINS-37324 for shell & batch step, more or less.
This gives us the script argument that we really need to implement smarter display of batch steps. Note that I'm not modifying the displayName or functionName for the step, because IIRC there is existing logic dependent on that -- but consumers of the flow graph can do the following to get what is needed:
ScriptArgumentAction action = flowNode.getAction(ScriptArgumentAction.class); String batchOrShellScript = action.getScript();
I'm not marking it ready to review yet because need to look at it with fresh eyes tomorrow and see if there's a smarter way to implement this.
Catch: this serializes far more data. It might reduce performance if done without a rewrite of flow node storage.