Hello,
I'm trying to run the following pipeline code that is failing without an output.
I've tried running it via CLI in a container and it works fine.
Can someone explain what's wrong?
- buildJobs=$(wc -l build-ids.txt | awk '{print $1}')
- inactiveJobs=0
- while [ $inactiveJobs -lt $buildJobs ]; do inactiveJobs=$(aws codebuild batch-get-builds --ids $(cat build-ids.txt| tr '\n' ' ' | tr -d '"') | jq '.builds[]'.buildStatus | grep -c -v IN_PROGRESS); echo $inactiveJobs; sleep 10; done
Thanks
I am in a similar boat where I have a while loop failing on a bash script that I know works locally. I get the error: bash: while: command not found. Is a while loop something that can be installed in the pipeline (if yes how?), or is it something purposefully not allowed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.