How to loop checkbox select variables?

Hi,

I tried using a text variable with checkbox select and wanted to loop over every selected item to trigger a msbuild action (for multiple Delphi versions).
What I was thinking was some loop over the variable but the current while loop seems to not support it.

Another related question.
How can I change the environment variables for msbuild to work for multiple Delphi versions?

I have this.
BDS=$Agent.Delphi.XE.Path$

I would like to write:
BDS=$Agent.Delphi.%Version%.Path$

but obviously that does not work.

Hi Stefan

It’s not currently possible to iterate a list in Continua CI. It was never intended to be be a fully fledged build script,Continua is more about CI and build orchestration. If you need more fine control in your build processed then you need to have Continua CI invoke something more capable, such as FinalBuilder (where what you are trying to do would be trivial) or some other scripting tool. If you need an FB license for the spring4d project I would be happy to donate one, we use spring4d in FinalBuilder so happy to contribute back.

Hi Vincent,

I know with FB you can do so much more as we are using it at work. I was just hoping that Continua could do such simple things as you offer the multi selection for the options but cannot work directly with that inside Continua.
Thanks for offering us a FB licence. I have to think about it as I wanted to keep the CI as simple and little as possible to keep maintenance overhead low.

Because I am curious. Which parts of Spring4D are you using?

The industry trend with build scripts is making them independent from the CI server, so that they are portable and can be versioned with the source code they are building.

We’re mostly using the collections and the reflection code, value helpers etc. I did try using the container but kept getting random av’s (that was a while ago).

The industry trend with build scripts is making them independent from the CI server, so that they are portable and can be versioned with the source code they are building.


Indeed. That is why we are using continua to run the FB script at work (well and the fact we have the FB script from long ago before Continua).

However i found out that building for just one specific Delphi version and running the unit tests can be done with 2 actions.
With looping over the comma separated text variable given by the multiselect option that could have been a 3 liner which would have been super awesome.