Last Updated: October 23, 2022
·
60
· 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

 """ 
        }
    }
}