Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 90143 invoked from network); 6 Feb 2009 11:50:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 11:50:42 -0000 Received: (qmail 17803 invoked by uid 500); 6 Feb 2009 11:50:41 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 17781 invoked by uid 500); 6 Feb 2009 11:50:40 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 17769 invoked by uid 99); 6 Feb 2009 11:50:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 03:50:40 -0800 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaii-ivy-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 11:50:32 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LVPDn-0003je-Nt for ivy-user@ant.apache.org; Fri, 06 Feb 2009 11:50:11 +0000 Received: from 82.109.240.194 ([82.109.240.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Feb 2009 11:50:11 +0000 Received: from tom.widmer by 82.109.240.194 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Feb 2009 11:50:11 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: ivy-user@ant.apache.org From: Tom Widmer Subject: Re: TeamCity dependency tracking Date: Fri, 06 Feb 2009 11:50:03 +0000 Lines: 62 Message-ID: <498C23EB.1000406@googlemail.com> References: <65191.16325.qm__31424.7608920143$1230027561$gmane$org@web30803.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.109.240.194 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <65191.16325.qm__31424.7608920143$1230027561$gmane$org@web30803.mail.mud.yahoo.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Maarten Coene wrote: > I don't think this is possible at the moment with Ivy. > Please open a JIRA feature request I thought of a workaround in case anyone is using TeamCity in the same way: TeamCity allows you to specify a non-authenticated download path that doesn't trigger dependency tracking (the path contains guestAuth rather than httpAuth). This only works if you have guest access to artefacts enabled, so wouldn't necessarily work for everyone. Then, you have the resolver path for ivy files use the guestAuth path, and the resolver path for artifact files use the httpAuth path, so that only dependencies on artifacts (rather than ivy files) are tracked. Tom > ----- Original Message ---- > From: Tom Widmer > To: ivy-user@ant.apache.org > Sent: Tuesday, December 23, 2008 10:50:09 AM > Subject: TeamCity dependency tracking > > Hi all, > > I'm using a TeamCity build server as an Ivy repository for our build artifacts, and it works very well for the job except for tracking dependencies when using a varying build version, like 'latest.release'. To fix the problem, I need to be able to pass different log in credentials for the ivy.xml files to the artifacts. I have a resolver for the repo like this: > > > > > > > I have: > > username="${teamcity.auth.userId}" > passwd="${teamcity.auth.password}"/> > > but obviously those credentials are used for both the ivy.xml files and the artifacts. Is there any way to specify different credentials for the ivy.xml files? > > > Background: > > TeamCity has a cunning system of tracking dependencies between builds by providing build-specific TeamCity log in credentials to your ant build script in a couple of properties (though Hudson's system of fingerprinting is just as cunning, and would avoid the problem I'm having). Anything downloaded with those credentials during the build gets logged by TeamCity as a dependency of the build. I use this to have automatic tracking of any dependencies that Ivy downloads from TeamCity (the TeamCity UI allows you to navigate to dependency builds, prevent them being cleaned up automatically, etc.). > > So, what's the problem? I recently added a nightly regression testing build that always builds against the latest build, using latest.release. Unfortunately, this causes the build to download the ivy.xml file from every single build that exists on the server in order to work out which is the latest. So the regression testing build appears to depend on every single build (though you can tell the real build by looking for the build where more than 1 artifact is a dependency). > > I've made it workable by disabling dependency cleanup prevention for that build (so at least the regression test doesn't prevent automatic cleanup of old, unused builds), but it would still be nice to prevent every single ivy.xml file being listed as a dependency! Two possible fixes: > > 1. Persuade Ivy to download ivy.xml files only using standard credentials, so those downloads won't be tracked. > 2. Persuade TeamCity to ignore downloads of ivy.xml files using the build tracking credentials. > > I can't see a way to do 2, but does anyone know how to do 1? > > Perhaps this is a feature request - some way to bind credentials to things other than just hosts. > > Thanks, > > Tom > > > >