How to remove the deleted branch names from "build with parameters"

42 views
Skip to first unread message

Jason Yu

unread,
Feb 23, 2017, 7:06:13 PM2/23/17
to Jenkins Users
I have my jenkins server updated to 2.46 yesterday aiming to resolve this issue but it still exists after upgrade. 

My jenkins is integrated with our bitbucket account. For each projects, we have several branches. When we select "build with parameters" the branches name show up. HOwever, even we deleted that branch on bitbucket, the deleted bransh name is still showing up. I tried to find the solution online to not show these dead branches. but didn't success. 

I found some posts mentioned "Orphaned Item Strategy" but in my Jenkins UI, I couldn't find it. 

Would anyone help me with this? I appreciate any help, thanks. 

Jason

Jason Yu

unread,
Feb 27, 2017, 7:27:05 PM2/27/17
to Jenkins Users

Any help for this issue. I upgraded jenkins but the issue still exists. 

Thanks. 

jason

Adrien Lecharpentier

unread,
Feb 28, 2017, 2:59:33 AM2/28/17
to Jenkins Users

Hi,

The orphan branch strategy is for the multibranch kind of job.

What is missing for us here is how do you populate the name of the branches in the build parameters? This is not automatically done so you must have either a static list or a groovy script. Please review your job configuration.

-- Adrien


--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ef535d2b-2e92-41e3-a49c-65bb7cae53e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Yu

unread,
Feb 28, 2017, 5:37:06 PM2/28/17
to jenkins...@googlegroups.com
HI, Adrien:

Thank you very much for your reply. I checked our parameter setup, it is from like below. 

Inline image 1

and this menu is from a plugin called "git Parameter plug-in"



Inline image 2


Do we need switch not using this plugin instead using the native way. I noticed there are more options there when creating new project after i upgraded jenkins. Which method is the best way to pull all the branches inside bitbucket. 


Inline image 3
Thanks a lot. 

On Mon, Feb 27, 2017 at 11:59 PM, Adrien Lecharpentier <adrien.lec...@gmail.com> wrote:

Hi,

The orphan branch strategy is for the multibranch kind of job.

What is missing for us here is how do you populate the name of the branches in the build parameters? This is not automatically done so you must have either a static list or a groovy script. Please review your job configuration.

-- Adrien


Le mar. 28 févr. 2017 à 01:27, Jason Yu <condes...@gmail.com> a écrit :

Any help for this issue. I upgraded jenkins but the issue still exists. 

Thanks. 

jason


On Thursday, February 23, 2017 at 4:06:13 PM UTC-8, Jason Yu wrote:
I have my jenkins server updated to 2.46 yesterday aiming to resolve this issue but it still exists after upgrade. 

My jenkins is integrated with our bitbucket account. For each projects, we have several branches. When we select "build with parameters" the branches name show up. HOwever, even we deleted that branch on bitbucket, the deleted bransh name is still showing up. I tried to find the solution online to not show these dead branches. but didn't success. 

I found some posts mentioned "Orphaned Item Strategy" but in my Jenkins UI, I couldn't find it. 

Would anyone help me with this? I appreciate any help, thanks. 

Jason

--
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.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/eCFn8Dj3jf4/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAKwJSvw8nZxaJRWPV6Tv1MU_3OhUc5Wz1KfNLec6WmUrL%3DFweg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--


L.A. Care Logo area


Jason Yu | System Administrator


L.A. Care Health Plan
1055 West 7th Street, 10th Floor • Los Angeles, CA 90017
work: 213.694.1250 x 6226 
email: jy...@lacare.org


Facebook LogoTwitter LogoLinkedin Logo


Reply all
Reply to author
Forward
0 new messages