Interactive input with new DSL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Interactive input with new DSL

Travis Camechis
With scripted DSL your not supposed to ask for input inside a node so you don't tie up an executor while waiting for user input.  How is this same thing accomplished in the new DSL ?  It seems like everything runs inside a node with the new DSL ?

Thanks
Travis

--
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/67e1e3d6-4d3b-45be-bcf7-89e299ec3b66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

R. Tyler Croy
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> With scripted DSL your not supposed to ask for input inside a node so you
> don't tie up an executor while waiting for user input.  How is this same
> thing accomplished in the new DSL ?  It seems like everything runs inside a
> node with the new DSL ?
>


A single stage can use "agent none"
    http://jenkins.io/doc/book/pipeline/syntax/#agent



- R. Tyler Croy

------------------------------------------------------
     Code: <https://github.com/rtyler>
  Chatter: <https://twitter.com/agentdero>
     xmpp: [hidden email]

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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/20170306193928.efubeq6syk4ufj5c%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

Travis Camechis
So if you define an agent of none within a stage it will override the higher level pipeline stage ?

On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote:
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> With scripted DSL your not supposed to ask for input inside a node so you
> don't tie up an executor while waiting for user input.  How is this same
> thing accomplished in the new DSL ?  It seems like everything runs inside a
> node with the new DSL ?
>


A single stage can use "agent none"
    <a href="http://jenkins.io/doc/book/pipeline/syntax/#agent" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;">http://jenkins.io/doc/book/pipeline/syntax/#agent



- R. Tyler Croy

------------------------------------------------------
     Code: <<a href="https://github.com/rtyler" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
  Chatter: <<a href="https://twitter.com/agentdero" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
     xmpp: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="fems0t4_AwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rty...@...

  % gpg --keyserver <a href="http://keys.gnupg.net" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

R. Tyler Croy
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> So if you define an agent of none within a stage it will override the
> higher level pipeline stage ?


Correct, the previously linked documentation has an example of a stage-level
"agent" directive.


> On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote:
> >
> > (replies inline)
> >
> > On Mon, 06 Mar 2017, Travis Camechis wrote:
> >
> > > With scripted DSL your not supposed to ask for input inside a node so
> > you
> > > don't tie up an executor while waiting for user input.  How is this same
> > > thing accomplished in the new DSL ?  It seems like everything runs
> > inside a
> > > node with the new DSL ?
> > >
> >
> >
> > A single stage can use "agent none"
> >     http://jenkins.io/doc/book/pipeline/syntax/#agent 
> >
> >
> >
> > - R. Tyler Croy
> >
> > ------------------------------------------------------
> >      Code: <https://github.com/rtyler>
> >   Chatter: <https://twitter.com/agentdero>
> >      xmpp: [hidden email] <javascript:>
> >
> >   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
> > ------------------------------------------------------
> >
>
> --
> 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/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

- R. Tyler Croy

------------------------------------------------------
     Code: <https://github.com/rtyler>
  Chatter: <https://twitter.com/agentdero>
     xmpp: [hidden email]

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

Andrew Bayer
Actually, "agent none" on a stage does nothing. I'm still trying to find an effective way to solve this use case in Declarative.

A.

On Mon, Mar 6, 2017 at 2:25 PM R. Tyler Croy <[hidden email]> wrote:
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> So if you define an agent of none within a stage it will override the
> higher level pipeline stage ?


Correct, the previously linked documentation has an example of a stage-level
"agent" directive.


> On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote:
> >
> > (replies inline)
> >
> > On Mon, 06 Mar 2017, Travis Camechis wrote:
> >
> > > With scripted DSL your not supposed to ask for input inside a node so
> > you
> > > don't tie up an executor while waiting for user input.  How is this same
> > > thing accomplished in the new DSL ?  It seems like everything runs
> > inside a
> > > node with the new DSL ?
> > >
> >
> >
> > A single stage can use "agent none"
> >     http://jenkins.io/doc/book/pipeline/syntax/#agent
> >
> >
> >
> > - R. Tyler Croy
> >
> > ------------------------------------------------------
> >      Code: <https://github.com/rtyler>
> >   Chatter: <https://twitter.com/agentdero>
> >      xmpp: [hidden email] <javascript:>
> >
> >   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
> > ------------------------------------------------------
> >
>
> --
> 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/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


- R. Tyler Croy

------------------------------------------------------
     Code: <https://github.com/rtyler>
  Chatter: <https://twitter.com/agentdero>
     xmpp: [hidden email]

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.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/CAPbPdObjTBXJD0MQ%2BFg4M5B9z2SDqxBVtBX%2Bxyo-a_5Mv6sg4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

Travis Camechis
hmm, if thats the case then this seems like a major flaw I would think.  Also a necessary one for a lot of CD pipelines.

On Monday, March 6, 2017 at 10:03:29 PM UTC-5, Andrew Bayer wrote:
Actually, "agent none" on a stage does nothing. I'm still trying to find an effective way to solve this use case in Declarative.

A.

On Mon, Mar 6, 2017 at 2:25 PM R. Tyler Croy <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2JhWVRZYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ty...@...> wrote:
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> So if you define an agent of none within a stage it will override the
> higher level pipeline stage ?


Correct, the previously linked documentation has an example of a stage-level
"agent" directive.


> On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote:
> >
> > (replies inline)
> >
> > On Mon, 06 Mar 2017, Travis Camechis wrote:
> >
> > > With scripted DSL your not supposed to ask for input inside a node so
> > you
> > > don't tie up an executor while waiting for user input.  How is this same
> > > thing accomplished in the new DSL ?  It seems like everything runs
> > inside a
> > > node with the new DSL ?
> > >
> >
> >
> > A single stage can use "agent none"
> >     <a href="http://jenkins.io/doc/book/pipeline/syntax/#agent" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;">http://jenkins.io/doc/book/pipeline/syntax/#agent
> >
> >
> >
> > - R. Tyler Croy
> >
> > ------------------------------------------------------
> >      Code: <<a href="https://github.com/rtyler" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
> >   Chatter: <<a href="https://twitter.com/agentdero" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
> >      xmpp: [hidden email] <javascript:>
> >
> >   % gpg --keyserver <a href="http://keys.gnupg.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
> > ------------------------------------------------------
> >
>
> --
> 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="2JhWVRZYAwAJ" 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/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%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.


- R. Tyler Croy

------------------------------------------------------
     Code: <<a href="https://github.com/rtyler" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
  Chatter: <<a href="https://twitter.com/agentdero" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
     xmpp: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2JhWVRZYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rty...@...

  % gpg --keyserver <a href="http://keys.gnupg.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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="2JhWVRZYAwAJ" 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/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.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.

--
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/1a50c101-a16d-41df-8aaf-c1ce4c484499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

suresh kumar
If we keep "agent none", pipeline input step wont occupy the any executor until the user approves or rejects.
Is this current behavior like this? I will give a try some time today, this feature really required for my CD solution.
We planning to move from freestyle projects to pipeline scripts.

I see another thing which is missing in pipelines "post build steps". How Jenkins community is addressing this, Is there any such document or notes which explains this? This will help me.

Thanks,
Suresh

On Tuesday, March 7, 2017 at 7:50:38 PM UTC+5:30, Travis Camechis wrote:
hmm, if thats the case then this seems like a major flaw I would think.  Also a necessary one for a lot of CD pipelines.

On Monday, March 6, 2017 at 10:03:29 PM UTC-5, Andrew Bayer wrote:
Actually, "agent none" on a stage does nothing. I'm still trying to find an effective way to solve this use case in Declarative.

A.

On Mon, Mar 6, 2017 at 2:25 PM R. Tyler Croy <[hidden email]> wrote:
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> So if you define an agent of none within a stage it will override the
> higher level pipeline stage ?


Correct, the previously linked documentation has an example of a stage-level
"agent" directive.


> On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote:
> >
> > (replies inline)
> >
> > On Mon, 06 Mar 2017, Travis Camechis wrote:
> >
> > > With scripted DSL your not supposed to ask for input inside a node so
> > you
> > > don't tie up an executor while waiting for user input.  How is this same
> > > thing accomplished in the new DSL ?  It seems like everything runs
> > inside a
> > > node with the new DSL ?
> > >
> >
> >
> > A single stage can use "agent none"
> >     <a href="http://jenkins.io/doc/book/pipeline/syntax/#agent" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;">http://jenkins.io/doc/book/pipeline/syntax/#agent
> >
> >
> >
> > - R. Tyler Croy
> >
> > ------------------------------------------------------
> >      Code: <<a href="https://github.com/rtyler" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
> >   Chatter: <<a href="https://twitter.com/agentdero" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
> >      xmpp: [hidden email] <javascript:>
> >
> >   % gpg --keyserver <a href="http://keys.gnupg.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
> > ------------------------------------------------------
> >
>
> --
> 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/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%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.


- R. Tyler Croy

------------------------------------------------------
     Code: <<a href="https://github.com/rtyler" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
  Chatter: <<a href="https://twitter.com/agentdero" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
     xmpp: [hidden email]

  % gpg --keyserver <a href="http://keys.gnupg.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.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.

--
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/82ab193e-16cd-42b1-a69f-6a49ab53617b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

Christopher Orr
On Thu, 9 Mar 2017, at 05:13, suresh kumar wrote:
> I see another thing which is missing in pipelines "post build steps". How
> Jenkins community is addressing this, Is there any such document or notes
> which explains this? This will help me.

There is documentation for Declarative Pipeline:
https://jenkins.io/doc/book/pipeline/syntax/#post

And examples on the blog for Scripted Pipeline:
https://jenkins.io/blog/2016/07/18/pipline-notifications/

Regards,
Chris

--
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/1489199578.4086665.907653128.1A46AEC0%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

suresh kumar
In reply to this post by Andrew Bayer
Tried with 'agent none' with stage having input step, it is not occupying the executor and the pipeline status showing Pause but build status is still Running.
Is there a possibility stopping the build there and on demand basis according to user wish he/she may select the pipeline version which ever they want to continue?

-Suresh

On Tuesday, March 7, 2017 at 8:33:29 AM UTC+5:30, Andrew Bayer wrote:
Actually, "agent none" on a stage does nothing. I'm still trying to find an effective way to solve this use case in Declarative.

A.

On Mon, Mar 6, 2017 at 2:25 PM R. Tyler Croy <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2JhWVRZYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ty...@...> wrote:
(replies inline)

On Mon, 06 Mar 2017, Travis Camechis wrote:

> So if you define an agent of none within a stage it will override the
> higher level pipeline stage ?


Correct, the previously linked documentation has an example of a stage-level
"agent" directive.


> On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote:
> >
> > (replies inline)
> >
> > On Mon, 06 Mar 2017, Travis Camechis wrote:
> >
> > > With scripted DSL your not supposed to ask for input inside a node so
> > you
> > > don't tie up an executor while waiting for user input.  How is this same
> > > thing accomplished in the new DSL ?  It seems like everything runs
> > inside a
> > > node with the new DSL ?
> > >
> >
> >
> > A single stage can use "agent none"
> >     <a href="http://jenkins.io/doc/book/pipeline/syntax/#agent" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fsyntax%2F%23agent\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRdjmwduX3NcKNuoxoAYcXEyA9-g&#39;;return true;">http://jenkins.io/doc/book/pipeline/syntax/#agent
> >
> >
> >
> > - R. Tyler Croy
> >
> > ------------------------------------------------------
> >      Code: <<a href="https://github.com/rtyler" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
> >   Chatter: <<a href="https://twitter.com/agentdero" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
> >      xmpp: [hidden email] <javascript:>
> >
> >   % gpg --keyserver <a href="http://keys.gnupg.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
> > ------------------------------------------------------
> >
>
> --
> 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="2JhWVRZYAwAJ" 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/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/c59b475a-35c5-41cd-b7b0-dc2a8b1029c6%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.


- R. Tyler Croy

------------------------------------------------------
     Code: <<a href="https://github.com/rtyler" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frtyler\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtsnCUZ085B8982iTQ2KFqz5gYhw&#39;;return true;">https://github.com/rtyler>
  Chatter: <<a href="https://twitter.com/agentdero" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftwitter.com%2Fagentdero\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEILlTAfpmlCsYIT_Phy_UKs4kUlw&#39;;return true;">https://twitter.com/agentdero>
     xmpp: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2JhWVRZYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rty...@...

  % gpg --keyserver <a href="http://keys.gnupg.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fkeys.gnupg.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGGvem0n8cSWWfyOfhzR-uVSpk4NQ&#39;;return true;">keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------

--
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="2JhWVRZYAwAJ" 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/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/20170306222514.j22tdxz6wv552ft4%40blackberry.coupleofllamas.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.

--
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/9acf06d6-c9ff-455c-8614-50a2b77992b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

Peter Marcoen
In reply to this post by Travis Camechis
I experience the same effect. 

I have a top-level agent definition for the agent I want to use by default.
In some underlying step I want to use a very specific agent, this override works great.
However, if I use "agent none" in an underlying step to accept input, the "default" node is still being used!
This is really annoying because now I have to put "agent none" at the top-level and a specific agent for each step.
This has the side effect that an SCM checkout is done every time.

Is there an open bug for this already?

--
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/e730ea42-d3b8-472e-b6cb-5204c2429362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Interactive input with new DSL

Baptiste MATHUS
The general recommendation is to look for it in the tracker, then file it as thoroughly as possible if not.
Thanks

Le 17 mars 2017 2:40 PM, "Peter Marcoen" <[hidden email]> a écrit :
I experience the same effect. 

I have a top-level agent definition for the agent I want to use by default.
In some underlying step I want to use a very specific agent, this override works great.
However, if I use "agent none" in an underlying step to accept input, the "default" node is still being used!
This is really annoying because now I have to put "agent none" at the top-level and a specific agent for each step.
This has the side effect that an SCM checkout is done every time.

Is there an open bug for this already?

--
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/e730ea42-d3b8-472e-b6cb-5204c2429362%40googlegroups.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/CANWgJS5CgjbnegExXw7OdJ6AM_A0zVWQUK%2Bmo-fNiMVWCKR05A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.