Details
-
Type:
New Feature
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: workflow-basic-steps-plugin
-
Similar Issues:
-
Epic Link:
Description
Rather than
withEnv(["PATH=${tool 'Maven 3.2.2'}/bin:${env.PATH}"]) {sh 'mvn package'}
you should be able to say
withTool('Maven 3.2.2') {sh 'mvn package'}
where this code builds the environment variables within the block.
Attachments
Issue Links
- is duplicated by
-
JENKINS-43769 Add tokens for tool installations managed by Jenkins
-
- Resolved
-
- is related to
-
JENKINS-33966 JAVA_HOME is not set when Maven is automatically installed
-
- Resolved
-
-
JENKINS-26057 Workflow build step for Maven
-
- Closed
-
-
JENKINS-30372 Workflow step that is a platform-neutral alternative for bat and sh
-
- Resolved
-
-
JENKINS-35419 Allow tools to be installed automatically without global configuration
-
- Open
-
- relates to
-
JENKINS-32000 durable-task 1.7 breaks workflow bat steps
-
- Open
-
-
JENKINS-42382 AntInstallation not setting PATH+ANT
-
- Resolved
-
-
JENKINS-42381 GradleInstallation not setting PATH+GRADLE
-
- Closed
-
Agreed. There's real value in tool just installing the tool - in case you've got multiple versions of a tool used in the same workflow/node.