| I have the following custom-tool configured: Name: jx-release-version Install automatically: on Script:
Tool Home: /${HOME}/tools/jx-release-version-v1.0.10 And I try to use it in my pipeline, the tool gets installed, but its HOME is not added to PATH:
pipeline {
agent { label 'lxc-fedora25' }
tools {
'com.cloudbees.jenkins.plugins.customtools.CustomTool' 'jx-release-version'
}
stages {
stage ('step 1') {
steps {
script {
sh "jx-release-version"
}
}
}
}
}
If I do it this way, then it works all fine, but this is not really the declarative way to do it:
pipeline {
agent { label 'lxc-fedora25' }
environment {
jx_path = tool name: 'jx-release-version', type: 'com.cloudbees.jenkins.plugins.customtools.CustomTool'
}
stages {
stage ('step 1') {
steps {
script {
sh "${jx_path}/jx-release-version"
}
}
}
}
}
So my request is, to support the first pipeline definition and add the custom-tool HOME to PATH, which I'm sure is what people would expect this plugin todo. |