-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: workflow-basic-steps-plugin
-
Environment:Jenkins 2.89.2
Pipeline Model API 1.2.5
With a pipeline definition similar to
pipeline {
agent {
docker {
image 'registry/org/buildagent'
}
}
tools {
jdk 'jdk-1.7.0_131'
maven 'maven-3.5.0'
}
stages {
stage ('Build') {
steps {
sh('mvn deploy')
}
}
}
}
The following message is generated
+ mvn deploy /workspace/project@tmp/durable-d723cc26/script.sh: line 2: mvn: command not found
This exact script works with Jenkins 2.73.1 and the Pipeline Model API 1.2.5 plugin