[Anthill-pro] Artifacts configuration question
Chad Loder
anthill at loder.us
Wed Feb 7 03:21:06 CST 2007
On Tue, Feb 06, 2007 at 11:08:55PM -0700, Eric Minick wrote:
> The scripts are pretty equivilant. The standard approach is to bundle up
> your produced war file and the deployment script(s) for it as a single
> artifact set. You would then have a deploy job that would run the
> 'Resolve my artifacts' step against that artifact set to retrieve the
> files to the agent. And then run your script.
>
> So a basic deployment job is three steps.
> 1) Set Working Directory (where do we want to run from?)
> 2) Resolve my artifacts (Get the stuff to deploy)
> 3) Run a Builder (do the deployment)
Brian,
Here is how I'm proceeding.
I have a "Compile and kit" originating workflow which does:
1) Update from cvs
2) Compile (via ant)
3) Run unit tests (via ant)
4) Run a "dev" stamper to stamp the build life with a ver #
5) Create a "kit" consisting of all JAR files etc. This is
placed in a directory named after the stamp applied in step 4,
which I resolve as follows:
${bsh:PathHelper.makeSafe(StampLookup.getLatestStampValue())}
6) Run the artifact publisher to create a kit artifact from this dir
Eric, does this sound like a valid approach?
Thanks,
c
> Does that answer the question?
>
> -- Eric
>
> Colfer, Brian wrote:
>
> >
> >Help me understand what this specification is. Would it be correct to
> >read as:
> >
> >"The file path pattern relative to the working directory."
> >
> >Also ... How can I use these artifacts, besides as a dependency for
> >another project? Ok I got that ... how can I reference them in another
> >work flow? In one set of projects I build a "war" file and deploy it to a
> >test server... I have an at task called depoly-to-test and I can specify a
> >property with the name of the war file ... note it is unique base on the
> >date and time of the build. Can I reference this in another ant task that
> >deploys?
> >
> >I have another similar task that builds a set of tar files containing
> >executables and configuration files. I want these to be placed in a
> >directory that is referenced by an rsync server. Is it best to use a
> >shell scirpt, a beanshell, ant script or are they equivalent?
> >
> >Brian
> >
> >
> >
> >________________________________
> >
> >From: anthill-pro-bounces at lists.urbancode.com on behalf of Chad Loder
> >Sent: Wed 2/7/2007 5:50 AM
> >To: anthill-pro at lists.urbancode.com
> >Subject: [Anthill-pro] Artifacts configuration question
> >
> >
> >
> >Hello.
> >
> >When creating an artifact configuration for a workflow, I see the comment
> >for Base directory:
> >
> >"What to location base your artifact patterns off of. This will be
> >relative to your working directory"
> >
> >The wording is unclear here. The "your" doesn't belong. :)
> >
> >Is this relative to the agent's default working directory (before any
> >Set Workdir scripts have been run) or is it relative to the current
> >working directory of the agent (after the most recent Set Workdir script
> >has run)? Or something else?
> >
> >Thanks,
> > c
> >_______________________________________________
> >Anthill-pro mailing list
> >Anthill-pro at lists.urbancode.com
> >http://lists.urbancode.com/mailman/listinfo/anthill-pro
> >
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Anthill-pro mailing list
> >Anthill-pro at lists.urbancode.com
> >http://lists.urbancode.com/mailman/listinfo/anthill-pro
> >
> >
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
More information about the Anthill-pro
mailing list