Groups
Groups
Sign in
Groups
Groups
Jenkins Users
Conversations
About
Send feedback
Help
Java Version for Maven through Artifactory Plugin
27 views
Skip to first unread message
Daniel
unread,
Dec 2, 2016, 3:22:46 PM
12/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Hi together,
I am currently setting up a build pipeline that uses the artifactory maven plugin to build and publish artifacts.
The following examples were a good start:
https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+-+Working+With+the+Pipeline+Jenkins+Plugin
https://github.com/JFrogDev/project-examples/blob/master/jenkins-pipeline-examples/maven-example/Jenkinsfile
However I wasn't able to define the Java Version which should be used to run maven.
Setting
env.JAVA_HOME
and
env.PATH
works fine for
sh 'java -version'
but it has no effect for the artifactory maven plugin.
Any hints are greatly appreciated.
Thanks, Daniel
Daniel
unread,
Dec 4, 2016, 6:04:39 AM
12/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Ok, it seems that this is currently a missing feature and it may be fixed in the next version:
http://stackoverflow.com/questions/40783030/jenkins-artifactory-plugin-not-detecting-my-compiler-during-maven-build
https://www.jfrog.com/jira/browse/HAP-848
Reply all
Reply to author
Forward
0 new messages