0

I have a Jenkins job with 1 string parameter ($BRANCH) default set to "branch/stage/feature". The single build step is to Execute Shell..

set +x
echo ${BRANCH////_}

It fails with 'Bad substitution'

I'm trying to replace all the foreward slashes with underscores and save it to a new string.

RockPile
  • 1
  • 1

1 Answers1

0

Running in bash works I added #!/bin/bash to the top of the script

#!/bin/bash
set +x
echo ${BRANCH////_}
RockPile
  • 1
  • 1