Hi,
I'm using feature branches and sonarqube code scanning with a jenkins multibranch pipeline job.
Bachground:
Jenkins creates a new job for every new branch, sonarqube scanner notifies sonarqube and also creates a new job there.
If a brach gets removed, jenkins deletes the corresponding project, but the corresponding sonarqube project stays resulting in many orphaned jobs on sonarqube.
I wrote a plugin that listens to job deletions on jenkins and prunes the corresponding project from sonarqube.
I now need to make it configurable, as there may also be jobs that do not use sonarqube.
I would like to simply have an entry in the per project ocnfiguration pagem but couldn't figure out how to get that done with an multibranch pipeline project.
Can anyone give me an hint where to start with that? Or is there a better way to archive that?
I would really appreciate your help!
Thanks a lot in advance,
David