(replies inline)

On Thu, 08 Jun 2017, Marley Kudiabor wrote:

> I'm wondering if I'm doing something wrong the syntax seems radically 
> different between Declarative Pipelines and just placing everything inside 
> a "node" block.
> 
> I was wondering what format I should use to place pipeline steps inside of 
> Declarative Pipelines
> 
> For example
> 
> node {
>      stage ("stage") {
>          bat ''' echo foo'''
>      }
> }
> 
> Works but
> 
> pipeline {
>      ....
>      stage ("stage"){
>           bat ''' echo foo ''''
>      }
>      ....
> }
> 
> Does not


What is the error that Jenkins gives you when you try this?



- R. Tyler Croy

------------------------------------------------------
     Code: <https://github.com/rtyler>
  Chatter: <https://twitter.com/agentdero>
     xmpp: rty...@jabber.org

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

Attachment: signature.asc
Description: PGP signature

Reply via email to