[JIRA] (JENKINS-50662) withMaven for declarative pipeline

1 view
Skip to first unread message

davidkarlsen@java.net (JIRA)

unread,
Apr 9, 2018, 5:53:02 AM4/9/18
to jenkinsc...@googlegroups.com
davidkarlsen created an issue
 
Jenkins / Improvement JENKINS-50662
withMaven for declarative pipeline
Issue Type: Improvement Improvement
Assignee: Alvaro Lobato
Components: pipeline-maven-plugin
Created: 2018-04-09 09:52
Priority: Minor Minor
Reporter: davidkarlsen

For declarative pipelines, the tools can be selected on a job-basis, in the tools section, https://jenkins.io/doc/book/pipeline/syntax/#tools:

pipeline {
  agent {
    label 'docker'
  }
  tools {
    jdk 'Oracle-JDK8-64bit' <-- JDK
    maven 'apache-maven-3.x' <-- maven
  }

But there are some nice features for the withMaven as well (such as flags for reports, setting the maven repo location). It would be nice if withMaven could use what has been declared in the tools section, so it need not be redefined for each maven execution.

[Pipeline] withMaven
11:43:50 [withMaven] Options: [org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher[disabled=false]]
11:43:50 [withMaven] Available options: 
11:43:50 [withMaven] use JDK installation provided by the build agent <-- pick up from tools section
11:43:50 [withMaven] use Maven installation 'apache-maven-3.5.x' <-- pick up from tools section
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

benjamin.brummer@pinteam.eu (JIRA)

unread,
Mar 22, 2020, 5:20:02 AM3/22/20
to jenkinsc...@googlegroups.com
Benjamin Brummer updated an issue
Change By: Benjamin Brummer
Environment: Jenkins 2.204.5
Pipeline Maven Integration Plugin 3.8.2
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages