There is many things that work in Groovy that doesn't in Pipeline scripting.
Also the scripts approval for string manipulation and all those nightmare ish
behavior make it trial and error to write something that actually work. Often I
end up doing ugly for loop just because foreach and the like
Mark Waite:
> We've had many users that expected Jenkins Pipeline to be Groovy
> (especially scripted Pipeline users) instead of being a domain
> specific language that is based on Groovy. I fear that linking
> to more details of Groovy syntax will tend to confuse those users
> even more rather t
On Sat, Aug 15, 2020 at 3:42 PM Anton Shepelev wrote:
> 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.
Baptiste Mathus:
> Backslash escape is because the parser needs to know you're not
> trying to "despecialize" the following character. By default \
> *is* a special character. (E.g. "\to" would mean \t, which is a
> tabulation, then the letter o).
> So using \ because the second \, the parser just
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
Backslash escape is because the parser needs to know you're not trying to
"despecialize" the following character. By default \ *is* a special
character. (E.g. "\to" would mean \t, which is a tabulation, then the
letter o).
So using \ because the second \, the parser just
It's the same in Java, C A
I wrote:
> bat """
>chcp 1251
>c:\\path\\to\\program.exe
> """
The backslashes should be doubled:
c:\\path\\to\\program.exe
Sorry for the typo.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and sto
Hi Anton,
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 l
Hello, all
>From some examples in the internet I have found that a
mulitline Windows batch script in Jenkins may be called with
this step:
bat """
chcp 1251
c:\path\to\program.exe
"""
Where is this syntax documented with regard to:
1. the backslash escapes, and
2. the triple quoatai