Gianluca:

> take into account that the declarative syntax (and in general
> Jenkins pipelines) are just a DSL
> ( https://en.wikipedia.org/wiki/Domain-specific_language )
> heavily based on Groovy language
> ( http://groovy-lang.org/index.html ).
> So, many (really many) things you can do ... it's just Groovy
> language, like the one you asked.

Thank you. I know about domain-specific languages, having
programmed in Simula, GPSS, and Prolog, but I wonder why the
Jenkins documentation references that Wikipedia page about DSL's,
which does even mention Groovy, yet fails to reference a document
describing the syntax of Groovy:

  https://www.jenkins.io/doc/book/pipeline/#pipeline-syntax-overview

That comfused me! If possible, will the maintaners please consider
informing the readers that the declarative syntax is based on
Groovy and direct them to the Groovy specification?

> In fact, triple quote is documented at 
> http://groovy-lang.org/syntax.html#_triple_single_quoted_string
> And also many "command" like "bat" you mentioned in the email are
> just Groovy function and follow the Groovy rules about parameters
> and how you can call them.
> In the case of "bat" is you just pass one parameter is used as
> script, as you pass more than one you need to specify who is what:
> "bat script: "whatever", returnStout: true"

Thank you.

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20200816004151.e46885ae9c38872a3d92d65d%40gmail.com.

Reply via email to