I have two Jenkins Jobs JOB A and JOB B. JOB A is responsible to trigger JOB B.
JOB A has a Post-build Action and I am assigning parameter value and that is JSON like below:
Im JOB B I want to use that String parameter and I want to create a JSON file and want to save that im JOB B's workspace.
I used Groovy but am not sure how to access my param Sample.
JOB Bdoesn't get theSampleparameter or that you don't know how to access it in Groovy? There's no need for Groovy, however: A simpleecho %Sample% > %WORKSPACE%\Sample.jsonin an Execute Windows batch command build step (or a shell-equivalent) inJOB Bdoes the trick.