In my new resource I’m developing. It is based on a top level “ChangeRequest”.
My in/out/check work with the CR but I also want to create “ChangeRequest Tasks” which is a child of a CR.
So I implemented the “addTask” into the out CR resource. This will create a Task but then how in a job can I get this new Task number to be able to “update” the task later?
I didn’t want to create a full resource as it doesn’t really match as the check would in theory use the CR number to get the list of tasks in the CR but the CR does not exist so I can’t have a CR number in the “source” of the check.
I thought that “meta” information might work but I’m not sure the best way to implement this.
It works better as a couple of “tasks” (add CRTask and updateCRTask) . BUT when I want to create the task I want to insert the “$BUILD_JOB_NAME” into the details and that is NOT available in a task it’s only available in a resource which does not really work (as I mentioned above).
Basically the use case is I use the CR resource and have a task in a job to “createCRTask” then later in the job “updateCRTask” with the status. There is no need to make a full blown resource because it will never be passed between jobs.
Any help would be great.