Add entry to Multibranch Pipeline Configuration

15 views
Skip to first unread message

David W

unread,
Jul 3, 2017, 8:40:23 AM7/3/17
to Jenkins Users
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 

Stephen Connolly

unread,
Jul 3, 2017, 8:56:32 AM7/3/17
to jenkins...@googlegroups.com
BranchProperty

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6c3de651-8d65-4062-bb54-b89f780cd5cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages