In Jenkins scripted pipeline you can set PATH env variable like this :
node { git url: \'https://github.com/jglick/simple-maven-project-with-tests.git\'
It is possible with environment section:
environment
pipeline { agent { label 'docker' } environment { PATH = "/hot/new/bin:$PATH" } stages { stage ('build') { steps { echo "PATH is: $PATH" } } } }
See this answer for info.