Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 483328

Summary: Please install Ant 1.9.6 on shared instance slaves
Product: Community Reporter: David Williams <david_williams>
Component: CI-JenkinsAssignee: CI Admin Inbox <ci.admin-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: mikael.barbero, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Williams CLA 2015-11-30 14:17:05 EST
I know for Linux slaves, we can just use 

ANT_HOME=/shared/common/apache-ant-1.9.6
 in our scripts, where we specify which Ant to use. 

I would suggest, though, that /shared/common define 
apache-ant-latest be changed to point to 1.9.6, instead of it currently pointing to 1.9.4, because there was a pretty bad bug in 1.9.4 that prevented <untar> from working. 

The larger issue is the Mac and Windows. 

On the Mac, we specify 
export ANT_HOME=/shared/common/apache-ant-1.8.4
I have not tried changing to 1.9.6, but assume it is not installed yet? 

Similar for Windows, but there we rely on Hudson's drop down box which says only 
apache-ant-latest

But with some variable we printout for diagnostics, it appears that "latest" on Windows is 1.8.3! 

ant.home=C\:\\Program Files\\apache-ant-1.8.3\\bin\\..

We would like to just be consistent and use the same version, 1.9.6, in all locations.
Comment 1 Mikaƫl Barbero CLA 2015-12-01 05:18:48 EST
(In reply to David Williams from comment #0)
> I know for Linux slaves, we can just use 
> 
> ANT_HOME=/shared/common/apache-ant-1.9.6
>  in our scripts, where we specify which Ant to use. 
> 
> I would suggest, though, that /shared/common define 
> apache-ant-latest be changed to point to 1.9.6, instead of it currently
> pointing to 1.9.4, because there was a pretty bad bug in 1.9.4 that
> prevented <untar> from working. 

Done.

> 
> The larger issue is the Mac and Windows. 
> 
> On the Mac, we specify 
> export ANT_HOME=/shared/common/apache-ant-1.8.4
> I have not tried changing to 1.9.6, but assume it is not installed yet? 

I've installed /shared/common/apache-ant-1.9.6 on the Mac and also created a symlink /shared/common/apache-ant-latest -> /shared/common/apache-ant-1.9.6. The shared instance is properly configured to use this symlink.

As you export ANT_HOME by yourself, I suggest you change it to 1.9.6 or latest.

> 
> Similar for Windows, but there we rely on Hudson's drop down box which says
> only 
> apache-ant-latest
> 
> But with some variable we printout for diagnostics, it appears that "latest"
> on Windows is 1.8.3! 
> 
> ant.home=C\:\\Program Files\\apache-ant-1.8.3\\bin\\..
> 
> We would like to just be consistent and use the same version, 1.9.6, in all
> locations.

I've installed Ant 1.9.6 on the Windows machine and configured the shared instance to use it as "apache-ant-latest".
Comment 2 David Williams CLA 2015-12-02 17:01:37 EST
Thank you.