[Anthill-pro] Job iteration and properties

Frederic Jean frederic.jean at ubisoft.com
Fri Mar 14 08:00:25 CST 2008


Well im pushing again this problem as it's a huge problem... :

Another point is that for each of my iteration I deliver artifacts that need to be tested, the problem is that each iteration as a unique set of artifacts.. the problem is I end up having all the artifacts for all my iteration build in the same set. So when I call my test workflow it fetch all artifacts of all my iteration build which imply that some artifact are overwritten...

so right now, i understand that if I define an artifact set and use it in a workflow that artifact set will be unique for my workflow buildlife... so in my case that is why by having iteration job in that workflow, my artifact set will gather from all iteration of that job...

now would it fix the problem if my main workflow call a job I iterate that call another workflow that does the build and deliver the artifact so that way each artifact set "Test" of each of my iterated job workflow will be unique or it won,t change as it will refer to my main workflow ?

Diagram 

Workflow A (daily incremental build)
 -> Job iteration x 6
	-> Call workflow B 
		-> Build job with a step that deliver artifact ?

Or 
I could also make a work around like pushing my artifacts manually to a shared folder which would be  identified by the job id , and then with parameters, my test job retrieve those and test them... but that would bypass the artifact functionality in anthill.

Would it be a fix to my problem , how there is a much simplier way of doing so ? 


Thank you !
Frederic Jean
		

-----Message d'origine-----
De : anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] De la part de Frederic Jean
Envoyé : 13 mars 2008 18:46
À : AnthillPro user and support list.
Objet : RE: [Anthill-pro] Job iteration and properties

I'm using Anthill 3.4.9

After some test i figured out that , you only need to set properties in the iteration you want to overwrite in the workflow. 
So I removed the BRANCH=${property:BRANCH} definition as it was already set when I call my workflow and it doesn't need to change for each of my job iteration, so it fixed my problem .

Also by trying to add Iteration in Parallel I noticed that if I set the number of iteration in parallel to N which is less than the number of total iteration I have, Anthill will process sequentially all iteration and will try to parallelize the first N iteration , but if those iteration are filtered to be executed to the same agent that can only execute one iteration , others are queued... so there is only one iteration that is executed at a time.

Another point is that for each of my iteration I deliver artifacts that need to be tested, the problem is that each iteration as a unique set of artifacts.. the problem is I end up having all the artifacts for all my iteration build in the same set. So when I call my test workflow it fetch all artifacts of all my iteration build which imply that some artifact are overwritten...

Is there a way to fix that ? maybe I am doing something wrong ?

Thank you !

Frederic Jean

-----Message d'origine-----
De : anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] De la part de Samuel Cameron
Envoyé : 13 mars 2008 18:06
À : AnthillPro user and support list.
Objet : RE: [Anthill-pro] Job iteration and properties

What version of Anthill are you using? What you are trying to do works
for me. What is the value of BRANCH in the job logs? Also, check if
BRANCH is defined as a project property that is set to "Pass to
Builders"? I did that and my property was passed to the job twice with
different values. 

Sam Cameron

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Frederic
Jean
Sent: Thursday, March 13, 2008 2:47 PM
To: AnthillPro user and support list.
Subject: [Anthill-pro] Job iteration and properties


What is the relation with workflow properties and job iteration
properties ?

In my workflow , i run 6 iteration of a job.. I thought I could do
something like

BRANCH=${property:BRANCH} where ${property:BRANCH} is my workflow
property.

But it does not work ? why ? also those properties I set for my job
iteration , how do I access them in my job ? same way I access my
workflow property -> ${property:BRANCH} ?

Thank you

Frederic jean



_______________________________________________
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