You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Hi, I am running jenkins2 and pipeline for my job
My pipeline definition is pipeline script(not pipeline script from SCM) and I am using git as my scm system.
I want to specify a git branch before a build starts. How can I do this?
Mark Waite
unread,
Aug 9, 2018, 7:45:56 PM8/9/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
If you know the list of branch names that you want to present in the list, you can use the Jenkins Minute video https://www.youtube.com/watch?v=5_tvlaIeQUQ as an example to parameterize the PIpeline job.
If you want the list of branches to be generated dynamically based on the contents of the repository, investigate the git parameter plugin at https://plugins.jenkins.io/git-parameter
Mark Waite
suoyua...@shopee.com
unread,
Aug 23, 2018, 3:51:41 AM8/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
After digging into the git parameter plugin, I find it is hard to get what I want since the plugin uses SCM which I do not want it configure in the job.