Escaping escape hell when using shell in Jenkins
Don't get a headache trying to escape, just escape the escape hell altogether!
timestamps {
node () {
stage ('Stage-Name') {
// This is a Shell build step
sh """
#!/bin/bash
# Shell stuff here free from escape hell
set +x
"""
}
}
}
Written by Lars Van Casteren
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jenkins
Authors
julianchurchill
43.93K
denver
12.34K
Related Tags
#jenkins
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#