Building All Revisions

I have Perforce up and running the General flow of my build is:

 

WhileLoop

-Perforce Generic (Gets LastPerforceRevision)

-IF( Prev Perforce Revision <> Last Perforce Revision)

--SetVariable Prev Perforce Revision to Last Perforce Revision

--Perforce Sync (to revision)

--

--

 

 

So this is all well an good except if I have multiple revisions in between the build. So I was wondering the best way to store the last perforce revision and then simply increment the builds forward until -IF( Prev Perforce Revision <> Last Perforce Revision).

 

Any ideas?

Hi Ronan,

Is it possible to change the IF statement to PrevPerforceRevision < LastPerforceRevision ? ie. do you need to build all revisions between prev and last, or is a build for the last revision good enough?

.t8

I can change whatever needs to be. What I would like is a build per revision done. So we can easily test what fixes broke what and when. As it stands with our unit testing etc, our builds are taking around 5 - 10 minutes while at times we could make 3 or 4 checkins during this time. Thus when we loop around we would miss those and just grab the latest.

So I am free to change everything that is required, just once we capture all builds.

ok - I see what you mean now :slight_smile:

You could use the For Loop action for this. ie. it would loop from (PrevPerforceRevision + 1) to LastPerforceRevision and step by 1 each time. You’ll have to use an extra variable to hold the current revision to build.

hth.