Re: List of git branches using Jenkinsfile parameters

2018-02-21 Thread Stephen Connolly
On 21 February 2018 at 02:03,  wrote:

> I want to selectively build branches. So anything that is committed to
> master is built automatically, but in order to build a specific branch a
> user has to run "build with parameters" and choose the branch to build
>
>
WHY would you want to use multibranch to work that way?

That is not the way multibranch is designed to work.

To get that kind of flow with multibranch you would do the following:

1. Install the Basic Branch Build Strategy plugin
2. Configure the multibranch to only build "master" branch automatically.
3. User wants to build a specific branch, they trigger a build of that
branch by clicking "build" on that branch

No parameter mess, nice clean build history for each branch.


> As for the pipeline job, yes with jenkins groovy dsl. All the parameters
> are defined through the gui and then called by the jobdsl. I want to do it
> all in code as the Jenkinsfile is in scm and automatically added/built
>
> And listing the remote git branches, that's what I am looking for, that's
> my original request. How do I list the branches in the job parameters
> before starting the build?
>
> On Tuesday, 20 February 2018 09:11:45 UTC+11, ok999 wrote:
>>
>> What kind of pipeline job is that? The one with jenkins groovy dsl or the
>> declarative one? How r u listing remote git branches in the job parameters
>> to be selected by a user before starting a build?
>>
>> I haven’t came accoss that feature. And for the multi branch job, wasnt
>> it suppose to build any new branch? Why do u want to select specific branch
>> with it?
>>
>> On Mon, Feb 19, 2018 at 10:13 AM  wrote:
>>
>>> Hmm, I was wondering that myself, but the pipeline job can run and
>>> populate the parameter list at runtime, so I was wondering if/hoping the
>>> multibranch can do the same
>>>
>>>
>>> On Monday, 19 February 2018 15:14:17 UTC+11, ok999 wrote:
>>>
 I dont have much experience with multi branch job types. Nonetheless,
 The below requirement may not be possible unless there is some plugin to do
 so.

 The job / local workspace will not have any idea of remote branches
 before you trigger it. A workaround may be to start the job, create a stage
 that checks out the remote branches, and use the input dsl for a users
 input.







 On Mon, Feb 19, 2018 at 9:33 AM  wrote:

>>> Correct. If I choose to "Build with parameters" I want a Branch
> parameter to list all the branches of that jobs repository, but defined in
> a Jenkinsfile as a multibranch pipeline
>
>
> On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>
>> Not sure, if i am following this requirement. Am I understanding it
>> right, if you want to list the remote branches of a repository on jenkins
>> job as a parameters?
>>
>> On Mon, Feb 19, 2018 at 8:43 AM  wrote:
>>
> What I want to be able to do -
>>>
>>> Have a Jenkinsfile that will automatically build a git master branch
>>> if triggered automatically on commit but prompt the user to select from 
>>> a
>>> branch if run manually
>>>
>>> Selecting the master if triggered automatically is no problem using
>>> parameter default value, but I cannot for the life of me figure out a 
>>> way
>>> to populate the branch parameter
>>>
>>> I've looked for a way to use the Git parameters plugin but while
>>> there is plenty of examples on how to use it though the gui with a 
>>> pipeline
>>> script, I cant find any documentation or examples on how to use it with
>>> multibranch/Jenkinsfile using code
>>>
>>> can anyone help with the above, or any other method?
>>>
>>> thanks
>>>
>>> --
>>> 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/1995eb74-
>>> 988c-4fb2-b972-f849771769c2%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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/c987a2f1-
> 

Re: List of git branches using Jenkinsfile parameters

2018-02-20 Thread derek . gibson
I want to selectively build branches. So anything that is committed to 
master is built automatically, but in order to build a specific branch a 
user has to run "build with parameters" and choose the branch to build

As for the pipeline job, yes with jenkins groovy dsl. All the parameters 
are defined through the gui and then called by the jobdsl. I want to do it 
all in code as the Jenkinsfile is in scm and automatically added/built

And listing the remote git branches, that's what I am looking for, that's 
my original request. How do I list the branches in the job parameters 
before starting the build?

On Tuesday, 20 February 2018 09:11:45 UTC+11, ok999 wrote:
>
> What kind of pipeline job is that? The one with jenkins groovy dsl or the 
> declarative one? How r u listing remote git branches in the job parameters 
> to be selected by a user before starting a build? 
>
> I haven’t came accoss that feature. And for the multi branch job, wasnt it 
> suppose to build any new branch? Why do u want to select specific branch 
> with it?
>
> On Mon, Feb 19, 2018 at 10:13 AM  
> wrote:
>
>> Hmm, I was wondering that myself, but the pipeline job can run and 
>> populate the parameter list at runtime, so I was wondering if/hoping the 
>> multibranch can do the same
>>
>>
>> On Monday, 19 February 2018 15:14:17 UTC+11, ok999 wrote:
>>
>>> I dont have much experience with multi branch job types. Nonetheless, 
>>> The below requirement may not be possible unless there is some plugin to do 
>>> so. 
>>>
>>> The job / local workspace will not have any idea of remote branches 
>>> before you trigger it. A workaround may be to start the job, create a stage 
>>> that checks out the remote branches, and use the input dsl for a users 
>>> input. 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Feb 19, 2018 at 9:33 AM  wrote:
>>>
>> Correct. If I choose to "Build with parameters" I want a Branch parameter 
 to list all the branches of that jobs repository, but defined in a 
 Jenkinsfile as a multibranch pipeline


 On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:

> Not sure, if i am following this requirement. Am I understanding it 
> right, if you want to list the remote branches of a repository on jenkins 
> job as a parameters? 
>
> On Mon, Feb 19, 2018 at 8:43 AM  wrote:
>
 What I want to be able to do -
>>
>> Have a Jenkinsfile that will automatically build a git master branch 
>> if triggered automatically on commit but prompt the user to select from 
>> a 
>> branch if run manually
>>
>> Selecting the master if triggered automatically is no problem using 
>> parameter default value, but I cannot for the life of me figure out a 
>> way 
>> to populate the branch parameter 
>>
>> I've looked for a way to use the Git parameters plugin but while 
>> there is plenty of examples on how to use it though the gui with a 
>> pipeline 
>> script, I cant find any documentation or examples on how to use it with 
>> multibranch/Jenkinsfile using code
>>
>> can anyone help with the above, or any other method?
>>
>> thanks
>>
>> -- 
>> 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/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Sent from mobile device, excuse typos if any.
>
 -- 
 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/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>>> Sent from mobile device, excuse typos if any.
>>>
>> -- 
>> 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 
>> 

Re: List of git branches using Jenkinsfile parameters

2018-02-20 Thread 'Björn Pedersen' via Jenkins Users
Hi,

Take a look at:
https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin and 
https://stackoverflow.com/questions/10433105/dynamically-fill-jenkins-choice-parameter-with-git-branches-in-a-specified-repo
 
or
https://gist.github.com/eeichinger/9761870

Björn

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a5f97bf2-165e-4dac-9a92-7246b4bc4880%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-19 Thread niristotle okram
What kind of pipeline job is that? The one with jenkins groovy dsl or the
declarative one? How r u listing remote git branches in the job parameters
to be selected by a user before starting a build?

I haven’t came accoss that feature. And for the multi branch job, wasnt it
suppose to build any new branch? Why do u want to select specific branch
with it?

On Mon, Feb 19, 2018 at 10:13 AM  wrote:

> Hmm, I was wondering that myself, but the pipeline job can run and
> populate the parameter list at runtime, so I was wondering if/hoping the
> multibranch can do the same
>
>
> On Monday, 19 February 2018 15:14:17 UTC+11, ok999 wrote:
>
>> I dont have much experience with multi branch job types. Nonetheless, The
>> below requirement may not be possible unless there is some plugin to do so.
>>
>> The job / local workspace will not have any idea of remote branches
>> before you trigger it. A workaround may be to start the job, create a stage
>> that checks out the remote branches, and use the input dsl for a users
>> input.
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Feb 19, 2018 at 9:33 AM  wrote:
>>
> Correct. If I choose to "Build with parameters" I want a Branch parameter
>>> to list all the branches of that jobs repository, but defined in a
>>> Jenkinsfile as a multibranch pipeline
>>>
>>>
>>> On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>>>
 Not sure, if i am following this requirement. Am I understanding it
 right, if you want to list the remote branches of a repository on jenkins
 job as a parameters?

 On Mon, Feb 19, 2018 at 8:43 AM  wrote:

>>> What I want to be able to do -
>
> Have a Jenkinsfile that will automatically build a git master branch
> if triggered automatically on commit but prompt the user to select from a
> branch if run manually
>
> Selecting the master if triggered automatically is no problem using
> parameter default value, but I cannot for the life of me figure out a way
> to populate the branch parameter
>
> I've looked for a way to use the Git parameters plugin but while there
> is plenty of examples on how to use it though the gui with a pipeline
> script, I cant find any documentation or examples on how to use it with
> multibranch/Jenkinsfile using code
>
> can anyone help with the above, or any other method?
>
> thanks
>
> --
> 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/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 Sent from mobile device, excuse typos if any.

>>> --
>>> 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/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d4462e32-4ff0-489c-adb7-3fce522e22d9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jWvAHNnnqJH9LGmvWy5Zqf3FL67cjOnMSLWJbi87gaWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-18 Thread derek . gibson
Hmm, I was wondering that myself, but the pipeline job can run and populate 
the parameter list at runtime, so I was wondering if/hoping the multibranch 
can do the same

On Monday, 19 February 2018 15:14:17 UTC+11, ok999 wrote:
>
> I dont have much experience with multi branch job types. Nonetheless, The 
> below requirement may not be possible unless there is some plugin to do so. 
>
> The job / local workspace will not have any idea of remote branches before 
> you trigger it. A workaround may be to start the job, create a stage that 
> checks out the remote branches, and use the input dsl for a users input. 
>
>
>
>
>
>
>
> On Mon, Feb 19, 2018 at 9:33 AM  
> wrote:
>
>> Correct. If I choose to "Build with parameters" I want a Branch parameter 
>> to list all the branches of that jobs repository, but defined in a 
>> Jenkinsfile as a multibranch pipeline
>>
>>
>> On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>>
>>> Not sure, if i am following this requirement. Am I understanding it 
>>> right, if you want to list the remote branches of a repository on jenkins 
>>> job as a parameters? 
>>>
>>> On Mon, Feb 19, 2018 at 8:43 AM  wrote:
>>>
>> What I want to be able to do -

 Have a Jenkinsfile that will automatically build a git master branch if 
 triggered automatically on commit but prompt the user to select from a 
 branch if run manually

 Selecting the master if triggered automatically is no problem using 
 parameter default value, but I cannot for the life of me figure out a way 
 to populate the branch parameter 

 I've looked for a way to use the Git parameters plugin but while there 
 is plenty of examples on how to use it though the gui with a pipeline 
 script, I cant find any documentation or examples on how to use it with 
 multibranch/Jenkinsfile using code

 can anyone help with the above, or any other method?

 thanks

 -- 
 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/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>>> Sent from mobile device, excuse typos if any.
>>>
>> -- 
>> 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/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Sent from mobile device, excuse typos if any.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d4462e32-4ff0-489c-adb7-3fce522e22d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-18 Thread niristotle okram
I dont have much experience with multi branch job types. Nonetheless, The
below requirement may not be possible unless there is some plugin to do so.

The job / local workspace will not have any idea of remote branches before
you trigger it. A workaround may be to start the job, create a stage that
checks out the remote branches, and use the input dsl for a users input.







On Mon, Feb 19, 2018 at 9:33 AM  wrote:

> Correct. If I choose to "Build with parameters" I want a Branch parameter
> to list all the branches of that jobs repository, but defined in a
> Jenkinsfile as a multibranch pipeline
>
>
> On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>
>> Not sure, if i am following this requirement. Am I understanding it
>> right, if you want to list the remote branches of a repository on jenkins
>> job as a parameters?
>>
>> On Mon, Feb 19, 2018 at 8:43 AM  wrote:
>>
> What I want to be able to do -
>>>
>>> Have a Jenkinsfile that will automatically build a git master branch if
>>> triggered automatically on commit but prompt the user to select from a
>>> branch if run manually
>>>
>>> Selecting the master if triggered automatically is no problem using
>>> parameter default value, but I cannot for the life of me figure out a way
>>> to populate the branch parameter
>>>
>>> I've looked for a way to use the Git parameters plugin but while there
>>> is plenty of examples on how to use it though the gui with a pipeline
>>> script, I cant find any documentation or examples on how to use it with
>>> multibranch/Jenkinsfile using code
>>>
>>> can anyone help with the above, or any other method?
>>>
>>> thanks
>>>
>>> --
>>> 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/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hH9dFx06AEaaO0uUGCPNgtPPjuf%3DG6kYSt4XgK02kujA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-18 Thread derek . gibson
Correct. If I choose to "Build with parameters" I want a Branch parameter 
to list all the branches of that jobs repository, but defined in a 
Jenkinsfile as a multibranch pipeline

On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>
> Not sure, if i am following this requirement. Am I understanding it right, 
> if you want to list the remote branches of a repository on jenkins job as a 
> parameters? 
>
> On Mon, Feb 19, 2018 at 8:43 AM  
> wrote:
>
>> What I want to be able to do -
>>
>> Have a Jenkinsfile that will automatically build a git master branch if 
>> triggered automatically on commit but prompt the user to select from a 
>> branch if run manually
>>
>> Selecting the master if triggered automatically is no problem using 
>> parameter default value, but I cannot for the life of me figure out a way 
>> to populate the branch parameter 
>>
>> I've looked for a way to use the Git parameters plugin but while there is 
>> plenty of examples on how to use it though the gui with a pipeline script, 
>> I cant find any documentation or examples on how to use it with 
>> multibranch/Jenkinsfile using code
>>
>> can anyone help with the above, or any other method?
>>
>> thanks
>>
>> -- 
>> 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/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Sent from mobile device, excuse typos if any.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-18 Thread niristotle okram
Not sure, if i am following this requirement. Am I understanding it right,
if you want to list the remote branches of a repository on jenkins job as a
parameters?

On Mon, Feb 19, 2018 at 8:43 AM  wrote:

> What I want to be able to do -
>
> Have a Jenkinsfile that will automatically build a git master branch if
> triggered automatically on commit but prompt the user to select from a
> branch if run manually
>
> Selecting the master if triggered automatically is no problem using
> parameter default value, but I cannot for the life of me figure out a way
> to populate the branch parameter
>
> I've looked for a way to use the Git parameters plugin but while there is
> plenty of examples on how to use it though the gui with a pipeline script,
> I cant find any documentation or examples on how to use it with
> multibranch/Jenkinsfile using code
>
> can anyone help with the above, or any other method?
>
> thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iTm2_BSsu6T4_LJhT5FwTNnP%2B4QQwE-R3jvs-bDgQ-Gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


List of git branches using Jenkinsfile parameters

2018-02-18 Thread derek . gibson
What I want to be able to do -

Have a Jenkinsfile that will automatically build a git master branch if 
triggered automatically on commit but prompt the user to select from a 
branch if run manually

Selecting the master if triggered automatically is no problem using 
parameter default value, but I cannot for the life of me figure out a way 
to populate the branch parameter 

I've looked for a way to use the Git parameters plugin but while there is 
plenty of examples on how to use it though the gui with a pipeline script, 
I cant find any documentation or examples on how to use it with 
multibranch/Jenkinsfile using code

can anyone help with the above, or any other method?

thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.