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(\'
Another way to avoid this issue and also not deleting global PATH at Manage Jenkins -> Configure System is to specify the PATH differently, apparently the following works fine and can append the PATH in the current environment
pipeline {
agent any
environment {
PATH = "/usr/local/bin:$PATH"
}
but the following results into nohup: failed to run command sh': No such file or directory
pipeline {
agent any
environment {
PATH = "/usr/local/bin:${env.PATH}"
}