[ 
https://issues.apache.org/jira/browse/LUCENE-5340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13821699#comment-13821699
 ] 

Uwe Schindler commented on LUCENE-5340:
---------------------------------------

I fixed your Jenkins!

This is wrong:
{noformat}
[lucene-solr-46-smoker] $ ant -DJAVA7_HOME=/usr/local/jdk1.7.0_25 
-DJAVA6_HOME=/usr/local/jdk1.6.0_37 -DJAVA_HOME=/usr/local/jdk1.6.0_37 
nightly-smoke
{noformat}

This only passes JAVA_HOME as system property, but not as shell environment. 
The bug is in Jenkins is the documentation: it mentions "environment", but it 
isn't. The help is clear about that (click on button right of the textbox). 
Without the "Environment Injector" plugin, you cannot replace shell env vars 
(this is what Policeman Jenkins is doing through Groovy.

The JDK to be used to run ANT is defined somewhere else in the Jenkins Job. By 
default it uses the JAVA_HOME that was used on starting Jenkins. You can change 
that by "configuring" the available Java installations in Jenkin's main config 
and then choosing the right JDK (instead of "Default" in the Job's config).

> build not respecting JAVA_HOME
> ------------------------------
>
>                 Key: LUCENE-5340
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5340
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 4.6
>
>
> I set JAVA_HOME to 1.6.0_37, yet the queryparser.jar that is constructed 
> looks like this:
> {noformat}
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.8.2
> Created-By: 1.7.0_25-b15 (Oracle Corporation)
> Extension-Name: org.apache.lucene
> Specification-Title: Lucene Search Engine: queryparser
> Specification-Version: 4.6.0
> Specification-Vendor: The Apache Software Foundation
> Implementation-Title: org.apache.lucene
> Implementation-Version: 4.6.0 1541637 - rmuir - 2013-11-13 12:57:01
> Implementation-Vendor: The Apache Software Foundation
> X-Compile-Source-JDK: 1.6
> X-Compile-Target-JDK: 1.6
> {noformat}
> It could just be packaging, or maybe just nightly smoke, or maybe just the 
> build in general: I havent narrowed it down yet.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to