Reputation: 6305
In Jenkins pipeline, what's the difference between:
sh """
...
...
...
"""
and
sh '''
...
...
...
'''
Thanks in advance
Upvotes: 26
Views: 17908
Reputation: 171094
Both are multi-line strings
The first multi-line string with """
can be templated into a GroovyString
The second one with '''
cannot (and is just a java String with newlines)
I have linked to the relevant documentation
Upvotes: 30