Is it possible to configure job at https://jenkins.ci.cloudbees.com/job/plugins/ to use java 8?

18 views
Skip to first unread message

Patrick Huang

unread,
Feb 20, 2017, 8:26:21 PM2/20/17
to Jenkins Developers
Hi, 

Our plugin declare java 8 in pom and uses java 8 in source. But the auto created job at https://jenkins.ci.cloudbees.com/job/plugins/ is running/using java 7:

Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /opt/java/sdk/Oracle/x86_64/jdk1.7.0_79/jre

So it failed the build. Is there anyway we can configure the job to use java 8? Like putting some magic word in github PR description? Should I be better off applying a job at https://ci.jenkins.io/job/Plugins/? Thanks.

Joseph P

unread,
Feb 21, 2017, 3:55:50 AM2/21/17
to Jenkins Developers
The magic word is inside the POM:

  <properties>
    <java.level>8</java.level>
  </properties>

I'd suggest making a Jenkinsfile, take a look at this https://github.com/jenkins-infra/pipeline-library/

This is how I did it https://github.com/jenkinsci/accurev-plugin/blob/master/Jenkinsfile which then simply builds the maven project :)

Best of luck!

Arnaud Héritier

unread,
Feb 21, 2017, 3:57:43 AM2/21/17
to jenkin...@googlegroups.com
Hi Patrick,

Yes it is possible, is it this plugin : https://github.com/jenkinsci/zanata-plugin ?

Note that if you don't target Java 7 you'll avoid a part of Jenkins users to use it (the ones who are still using J7) as for now Jenkins core still allows it. Sadly there is no mechanism in Jenkins to avoid users to install plugins which aren't targeting the right JVM level for now.

https://jenkins.ci.cloudbees.com should be stopped ASAP thus yes the best strategy for the future will be to move to ci.jenkins.io

cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bfb1eb49-4aa3-4eb3-9673-ad6976143fb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

Patrick Huang

unread,
Feb 21, 2017, 6:51:41 PM2/21/17
to Jenkins Developers
Thanks guys. It seems creating job on ci.jenkins.io is the way to go. 

I do have <java.level>8</java.level> in my pom. One of the library I depend on uses java 8 so I get no choice. Hopefully jenkins will upgrade to 8 soon. Java 7 is EOL anyway...

Slide

unread,
Feb 21, 2017, 7:07:51 PM2/21/17
to Jenkins Developers
There is a plan to upgrade to Java 8, but there will still be some time until most people upgrade to that version of Jenkins (and it becomes an LTS, etc). 

On Tue, Feb 21, 2017 at 4:51 PM Patrick Huang <patrick....@gmail.com> wrote:
Thanks guys. It seems creating job on ci.jenkins.io is the way to go. 

I do have <java.level>8</java.level> in my pom. One of the library I depend on uses java 8 so I get no choice. Hopefully jenkins will upgrade to 8 soon. Java 7 is EOL anyway...

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/08748d04-36af-44f6-8471-416168a7bb11%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages