Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93AD09582 for ; Sat, 31 Mar 2012 15:50:02 +0000 (UTC) Received: (qmail 58380 invoked by uid 500); 31 Mar 2012 15:50:02 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 58326 invoked by uid 500); 31 Mar 2012 15:50:01 -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 58307 invoked by uid 99); 31 Mar 2012 15:50:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 15:50:01 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HK_RANDOM_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tjmimd@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-we0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 15:49:54 +0000 Received: by werp12 with SMTP id p12so1034450wer.4 for ; Sat, 31 Mar 2012 08:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=FN06Ej5h1ITiSFbJRfQ5aLNYvijMWE8UFpcY9ogNl8Q=; b=rUKp1tlLp3IiSgpY4qnEgeCks5hTcD2NwCmKWGSYV4S0sb6tOISFFgf0eQhzssgGpY bxglfqFtsmzKgk0atobaqjvxag/kgnIucCTK/OxW7NLVXjGTXbLL08ThE/1Jh3jM6qcq tT72XPmwq7t65hfQSkMyhqpj8zfTHBMt2+hU1LXcfuzoqOt1SdX+foSsLeIw0KqQFLAE 6R/77LRUgAhl3oOC8tUhDGN9R/AJXzDAIaGVPZVGqe5x18DMUdC2+ROrh+nq/vwaERfs k70rugzWDOsZA1GSiCYG7Midbh+PtsUgDuepikN1TE0U+MRz0d3Ve1BX1unehoKv8eNt InMw== MIME-Version: 1.0 Received: by 10.180.88.164 with SMTP id bh4mr7846812wib.22.1333208973941; Sat, 31 Mar 2012 08:49:33 -0700 (PDT) Reply-To: tmcglynn@ieee.org Sender: tjmimd@gmail.com Received: by 10.180.104.231 with HTTP; Sat, 31 Mar 2012 08:49:33 -0700 (PDT) In-Reply-To: <77D73DC2-6990-4C9E-B429-C905D393BDFD@m2mconnectionsinc.com> References: <77D73DC2-6990-4C9E-B429-C905D393BDFD@m2mconnectionsinc.com> Date: Sat, 31 Mar 2012 11:49:33 -0400 X-Google-Sender-Auth: VPVJJHrA5x3pchixZb9Su_GVUPU Message-ID: Subject: Re: Problems moving artifacts from one repository to another From: Tom McGlynn To: ivy-user@ant.apache.org Content-Type: multipart/alternative; boundary=f46d044303fc4d9be004bc8be71c --f46d044303fc4d9be004bc8be71c Content-Type: text/plain; charset=ISO-8859-1 Hi Jack, Can you simplify the process and eliminate the problem by doing one of the following?: 1. Eliminate the build repository and use only the stage repository. Publish directly to the stage repository. 2. If you really do need two repositories, publish twice at the end of the build, first to the build repository, then to the stage repository. Having two copies of a revision of an Ivy module, one with status=integration and one with status=milestone seems confusing. We use status as an indication of the level of promotion. A new build starts with status=integration. Some policy causes the promotion to milestone, such as QA approval. We don't automatically assign the milestone status to a new build. Since we have only one repository we don't need to synchronize a mirror. On Fri, Mar 30, 2012 at 12:07 PM, Jack Lund wrote: > Hi, > > I'm trying to do something that seems like it should be easy, but I can't > seem to find a way to do it with Ivy. Basically, I want to copy an artifact > from one repository to another, "promoting" it in the process. > > In more detail, we have a build repository and a staging repository. Our > continuous integration server (Jenkins) pulls the source from SCM, builds > it, and runs all unit tests and code coverage, and then publishes it to the > build repository. Once it does that, we want to be able to copy the > artifact from the build repo to the staging repo, changing the status from > "integration" to "milestone". > > This seems like it should be a fairly standard use case, but there doesn't > seem to be any good way to do it in Ivy. I've tried doing a retrieve > followed by a publish, but in order to do a retrieve, I need to specify the > artifact as a dependency (in a different ivy.xml file), and then the > publish doesn't seem to work because it thinks it's trying to publish > something else. I've tried an install followed by a publish, but publish > seems to need a resolve to happen before it can publish. > > All of this seems way WAY too complicated. I'm just looking for a way to > retrieve a latest.integration revision of an artifact and republish it. Why > is this so complicated? Am I missing something essential here? > > Very frustrated. Any help would be greatly appreciated. > > Thanks. > > -Jack Lund --f46d044303fc4d9be004bc8be71c--