ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Eacott (JIRA)" <>
Subject [jira] Commented: (IVY-1136) Cannot retreive multiple files from hudson with url resolver
Date Fri, 12 Mar 2010 08:03:27 GMT


Jason Eacott commented on IVY-1136:

hi All, after lots of playing I know whats wrong (well kind of).
whatever code in ivy is doing the http get doesnt like the response returned by the winstone
server that hudson uses by default.
I checked with wireshark, and the correct requests are made, and wireshark reports an ok 200,
but ivy fails with a -1
I have resolved my issue (finally) for now by running hudson under tomcat instead.
Ivy should be fixed to handle whatever is going on from winstone.


> Cannot retreive multiple files from hudson with url resolver  
> --------------------------------------------------------------
>                 Key: IVY-1136
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows, Ubuntu, sun jdk 1.6.0_12,  ant 1.7.1
>            Reporter: Jason Eacott
> hi all, I've had this problem for a while and have been hoping it might get fixed once
v 2.1 was released. alas it seems not.
> I'm trying to use Ivy in a hudson build environment (not using the ivy hudson plugin),
from an ordinary ant build script.
> If I have just one dependency in hudson then ivy retrieves it just fine. 
> However if I have more than one then ONLY the first one listed in the ivy.xml is retrieved.
the rest fail.
> if I rearrange them only the first one is ever retrieved, so individually I know the
ivy.xml entries are ok.
> I tested hudsons' concurrency capacity and it seems just fine, so I think the problem
is either with ivy, or my config.
> my ivy.xml - 
>    <info 
>         organisation=""
>         module="mymodule"
>         status="integration">
>    </info>
>    <dependencies>
> 	   <dependency  name="myprojdep1" rev="latest.integration" force="true" conf="*->*,!sources,!javadoc"/>
>            <dependency  name="myprojdep2" rev="latest.integration" force="true"  conf="*->*,!sources,!javadoc"/>
<!-- this will fail every time with module not found-->
>    </dependencies>
> my settings:
> <ivysettings>
> 	<properties file="${ivy.settings.dir}/"/>
> 	<property name="ivy.local.default.root"             value="${ivy.default.ivy.user.dir}/local"
> 	<property name="ivy.local.default.ivy.pattern"      value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
> 	<property name="ivy.local.default.artifact.pattern" value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
> 	<property name="ivy.checksums" value=""></property>
>   <settings defaultResolver="libraries"/>
> 	<caches>
>   	  <cache name="localcache" basedir="${ivy.settings.dir}/ivy-cache" />
> 	</caches> 
> 	<resolvers>
> 	<!-- if we cant find it locally check hudson (should work so that if we are developing
it will find dev project artifacts locally) -->
> 	<chain name="localthenhudson">
> 		<filesystem name="projects"  cache="localcache" >
> 			<artifact pattern="${basedir}/../[module]/dist/[artifact].[ext]" />
> 			<ivy pattern="${basedir}/../[module]/ivy.xml" />
> 		</filesystem>
> 		<url name="hudsonartifacts" cache="localcache" >
> 		  <artifact pattern="http://myhudsonhost:8080/job/[module]-test/lastSuccessfulBuild/artifact/trunk/dist/[module].[ext]"
> 		 </url>
> 		</resolvers>
> 	<modules>
> 		<module organisation="myorg" name=".*" resolver="localthenhudson" />
> 	</modules>
> </ivysettings>
> hints, & help welcomed.
> Thanks.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message