I\'ve been having a lot of trouble trying to get a Jenkinsfile to work. I\'ve been trying to run this test script:
#!/usr/bin/env groovy
node {
stage(\'
Jenkins' most friendly and simplest solution while dealing with environment variables is to use Environment Injector Plugin
so to fix this issue you just need to do the following:
PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/bin inside Properties Content text box.