How to pass in a param into Multi branch pipeline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to pass in a param into Multi branch pipeline

Dan Tran
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f1260b14-3c86-458f-9925-821370dca364%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

Dan Tran
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan

On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

stephenconnolly
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <[hidden email]> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMxGYZYW%2Bjaj-Pap%2BF4y6tiDY7wEkuZ-WAsCg6iYU1TKWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

Dan Tran
I have a requirement to run maven sonar:sonar against all branches. This means my Jenkinsfile must explicitly invoke sonar and can only run sonar only environment

if jenkins pipline allows injection of a user env variable, my Jenkinsfile can react appropriately.

However, I just found  a promising option at https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59

Thanks

-Dan 

On Friday, March 17, 2017 at 2:51:39 AM UTC-7, Stephen Connolly wrote:
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="8RXednEsBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dan...@...> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="8RXednEsBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ab81b9c2-c3da-437f-94b1-0ced0d52e243%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

stephenconnolly
You could also define env vars at the folder level (as multibranch is a folder) and then use conditions based on the env vars... less elegant I know

On Sat 18 Mar 2017 at 07:22, Dan Tran <[hidden email]> wrote:
I have a requirement to run maven sonar:sonar against all branches. This means my Jenkinsfile must explicitly invoke sonar and can only run sonar only environment

if jenkins pipline allows injection of a user env variable, my Jenkinsfile can react appropriately.

However, I just found  a promising option at https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59

Thanks

-Dan 

On Friday, March 17, 2017 at 2:51:39 AM UTC-7, Stephen Connolly wrote:
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <[hidden email]> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 [hidden email].
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ab81b9c2-c3da-437f-94b1-0ced0d52e243%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMxpAYsnJzOySskFi2a54FPd2bN0E3o8kLzbg4RUoQ0ePA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

Dan Tran
Unfortunately, there is no Jenkins capability to inject environment vars at folder level

Thanks

-Dan

On Saturday, March 18, 2017 at 1:15:34 AM UTC-7, Stephen Connolly wrote:
You could also define env vars at the folder level (as multibranch is a folder) and then use conditions based on the env vars... less elegant I know

On Sat 18 Mar 2017 at 07:22, Dan Tran <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="YiHFrcd1BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dan...@...> wrote:
I have a requirement to run maven sonar:sonar against all branches. This means my Jenkinsfile must explicitly invoke sonar and can only run sonar only environment

if jenkins pipline allows injection of a user env variable, my Jenkinsfile can react appropriately.

However, I just found  a promising option at <a href="https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fworkflow-multibranch-plugin%2Fpull%2F59\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGzEsxf40SK4qxlNb11uXSjXcMdwA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fworkflow-multibranch-plugin%2Fpull%2F59\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGzEsxf40SK4qxlNb11uXSjXcMdwA&#39;;return true;">https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59

Thanks

-Dan 

On Friday, March 17, 2017 at 2:51:39 AM UTC-7, Stephen Connolly wrote:
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <[hidden email]> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/e3a897e6-cc62-4a55-923f-4efe8d9e6617%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
--
Sent from my phone

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="YiHFrcd1BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/ab81b9c2-c3da-437f-94b1-0ced0d52e243%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ab81b9c2-c3da-437f-94b1-0ced0d52e243%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ab81b9c2-c3da-437f-94b1-0ced0d52e243%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/ab81b9c2-c3da-437f-94b1-0ced0d52e243%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48bcda9f-6ceb-44ea-b655-02796976b067%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

stephenconnolly
Are you sure?

On Sat 18 Mar 2017 at 17:02, Dan Tran <[hidden email]> wrote:
Unfortunately, there is no Jenkins capability to inject environment vars at folder level

Thanks

-Dan


On Saturday, March 18, 2017 at 1:15:34 AM UTC-7, Stephen Connolly wrote:
You could also define env vars at the folder level (as multibranch is a folder) and then use conditions based on the env vars... less elegant I know
On Sat 18 Mar 2017 at 07:22, Dan Tran <[hidden email]> wrote:
I have a requirement to run maven sonar:sonar against all branches. This means my Jenkinsfile must explicitly invoke sonar and can only run sonar only environment

if jenkins pipline allows injection of a user env variable, my Jenkinsfile can react appropriately.

However, I just found  a promising option at https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59

Thanks

-Dan 

On Friday, March 17, 2017 at 2:51:39 AM UTC-7, Stephen Connolly wrote:
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <[hidden email]> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 [hidden email].
--
Sent from my phone

--
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 [hidden email].
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48bcda9f-6ceb-44ea-b655-02796976b067%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMy-cwhsEaqkd4%3DKvGPG3X4Mjx4LYhX5ccT3Lw-LrYbQsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

Dan Tran
hmm, looking further,  I need   'Folder Plus' plugin. It is not free


Thanks

-Dan


On Sat, Mar 18, 2017 at 10:15 AM, Stephen Connolly <[hidden email]> wrote:
Are you sure?

On Sat 18 Mar 2017 at 17:02, Dan Tran <[hidden email]> wrote:
Unfortunately, there is no Jenkins capability to inject environment vars at folder level

Thanks

-Dan


On Saturday, March 18, 2017 at 1:15:34 AM UTC-7, Stephen Connolly wrote:
You could also define env vars at the folder level (as multibranch is a folder) and then use conditions based on the env vars... less elegant I know
On Sat 18 Mar 2017 at 07:22, Dan Tran <[hidden email]> wrote:
I have a requirement to run maven sonar:sonar against all branches. This means my Jenkinsfile must explicitly invoke sonar and can only run sonar only environment

if jenkins pipline allows injection of a user env variable, my Jenkinsfile can react appropriately.

However, I just found  a promising option at https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59

Thanks

-Dan 

On Friday, March 17, 2017 at 2:51:39 AM UTC-7, Stephen Connolly wrote:
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <[hidden email]> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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.
--
Sent from my phone

--
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.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48bcda9f-6ceb-44ea-b655-02796976b067%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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/Taa7iD3ceB4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMy-cwhsEaqkd4%3DKvGPG3X4Mjx4LYhX5ccT3Lw-LrYbQsg%40mail.gmail.com.

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPCjjnGGprUqPp1bR2iaKO16XvUjw%2BW-KJizg3YA_oUkTRm0ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to pass in a param into Multi branch pipeline

stephenconnolly
Dang! I thought that stuff was free. Oh well sorry... could have sworn...

On Sat 18 Mar 2017 at 17:21, Dan Tran <[hidden email]> wrote:
hmm, looking further,  I need   'Folder Plus' plugin. It is not free


Thanks

-Dan


On Sat, Mar 18, 2017 at 10:15 AM, Stephen Connolly <[hidden email]> wrote:
Are you sure?

On Sat 18 Mar 2017 at 17:02, Dan Tran <[hidden email]> wrote:
Unfortunately, there is no Jenkins capability to inject environment vars at folder level

Thanks

-Dan


On Saturday, March 18, 2017 at 1:15:34 AM UTC-7, Stephen Connolly wrote:
You could also define env vars at the folder level (as multibranch is a folder) and then use conditions based on the env vars... less elegant I know
On Sat 18 Mar 2017 at 07:22, Dan Tran <[hidden email]> wrote:
I have a requirement to run maven sonar:sonar against all branches. This means my Jenkinsfile must explicitly invoke sonar and can only run sonar only environment

if jenkins pipline allows injection of a user env variable, my Jenkinsfile can react appropriately.

However, I just found  a promising option at https://github.com/jenkinsci/workflow-multibranch-plugin/pull/59

Thanks

-Dan 

On Friday, March 17, 2017 at 2:51:39 AM UTC-7, Stephen Connolly wrote:
Could you describe your use-case more concretely?

On Fri 17 Mar 2017 at 01:44, Dan Tran <[hidden email]> wrote:
anyone?  or this is a limitation of multibranch pipeline?

Thanks

-Dan


On Wednesday, March 15, 2017 at 5:23:04 PM UTC-7, Dan Tran wrote:
Hi 

My Jenkinsfile  has a boolean parameter, and I would like to enable a parameter via 

  - user selection
  - ENV set at the job where my groovy will detect and flip the param

However, I can't find any hook into those 2 options at top folder level

Thoughts?

-D

to be more concrete,  this particular job that I have must perform sonar:sonar, and my jenkinsfile disable this option by default

I am using declarative pipeline syntax

--
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 [hidden email].
--
Sent from my phone

--
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 [hidden email].
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48bcda9f-6ceb-44ea-b655-02796976b067%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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/Taa7iD3ceB4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMy-cwhsEaqkd4%3DKvGPG3X4Mjx4LYhX5ccT3Lw-LrYbQsg%40mail.gmail.com.

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPCjjnGGprUqPp1bR2iaKO16XvUjw%2BW-KJizg3YA_oUkTRm0ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMwW_u5b21MfUN0Qssvv8ZUNE2DOs3hKmpaTi3bht9sT5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...