The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

FOR loop does not work in Bamboo command line script Task

Ravish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2022

Trying to loop through string separated by comma but getting error 

%TEST was unexpected at this time.

set INPUT_STRING=%BAMBOO_RECORD_IDS%

for %%TEST in (%INPUT_STRING%) do (

echo %%TEST

}

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Ravish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2022

Problem was with loop variable. We need to be using %%x or something

TAGS
AUG Leaders

Atlassian Community Events