What could cause this error when running a build in bitbucket pipelines?

So I've been setting up an automated build for some embedded code I'm working on, the final stage of the build process (for each built hex file) is a step where curl uploads it to the downloads page of the Bitbucket repo, I have the same step working in 2 other repositories and in the previous steps for another hex file in the same repo/config file. What could be causing this error to come up?

+ curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"../release/rdmIntergratedDriver-$(git describe --long --tags --always --dirty)-$(git rev-parse --abbrev-ref HEAD | cut -f 1- -d/ | sed "s/\//-/").hex
bash: /opt/atlassian/pipelines/agent/tmp/bashScript7120016009615084851.sh: line 39: syntax error near unexpected token `('

 Here's an example from earlier in the same build where another hex file is uploaded successfully:

+ curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"../release/D48-controller-$(git describe --long --tags --always --dirty)-$(git rev-parse --abbrev-ref HEAD | cut -f 1- -d/ | sed "s/\//-/").hex"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 105k 0 0 100 105k 0 443k --:--:-- --:--:-- --:--:-- 443k

 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

132 views 6 8
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you