You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We have about 100 source files that need to have pre-compile task, validation task, compile task, and post compile task. Basically, there are 4 tasks that need to be run for each of the 100 source files. Is there a way to loop through Bamboo tasks and pass in a variable which would hold the name of the source to compile? BTW, we are using MSBuild for the compiler.
Read list of source file names from xml, json, csv, etc., place them in sourceNameArray
Loop X = 1 to 100
currentSourceName = sourceNameArray[X]
ExectuteTask1 with passed in name of source, currentSourceName
ExectuteTask2 with passed in name of source, currentSourceName
ExectuteTask3 with passed in name of source, currentSourceName
ExectuteTask4 with passed in name of source, currentSourceName
This loop would be far more maintainable instead of having 400 tasks that were setup by hand.