Last Updated: October 23, 2022
·
148
· Lars Van Casteren

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

 """ 
        }
    }
}