I'm trying to create two different jobs, the build job and E2E tests job.
I'd like the two jobs to annotate the git commit with their results and the results not to get mixed up.
On the build job, I didn't change any configuration and the git plugin does its magic in the background as expected.
In my E2E Jenkinsfile, I'm setting the git commit status manually as lots of guys on the internet suggest, with a method:
Which is used at startup, in post > success and post > failure.
When only the build job runs, the git commit is marked with continuous-integration/jenkins/branch, the details link points to my build job, this is as intended.
When the E2E tests run though, the commit gets marked with E2E tests (good) but the continuous-integration/jenkins/branch ** gets overwritten by the result of the E2E tests job and that's not intended. Both details link now point to the E2E job.
The details links both point to the E2E tests job which is unexpected.
The logs from my E2E job:
It looks like the automatic commit status setter is triggered and I don't know nor can find how to deactivate it.