I am trying to set the assembly description of the assembly that I am running as I am starting the assembly and I have not been lucky yet.
I came across a solution ( Adding text to the assembly page initiated by the remote Jenkins API ), and I kind of got it to work this way (the first command starts the assembly, the second sets the description of the last assembly):
curl -v -X POST "http://[myServer]/job/[jobName]/build" curl -v -X POST "http://[myServer]/job/[jobName/lastBuild/submitDescription" --data-urlencode "description=test description"
However, the problem is that if the assembly that I just started falls into the queue / does not hit right away, "lastBuild" will not refer to the assembly that I just started, but before it (which is still being built).
So, I tried something like this:
payload='json={""description"":""test description""}' curl -v -X POST -H "Content-Type: application/json" -d $payload "http://[myServer]/job/[jobName]/build"
But in fact, he does not establish a description.
Any ideas on how this can be achieved?
Other solutions I found, but I'm not very happy with:
source share