Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events