For my azure-pipeline.yml file, I would like to assign variable by bash script to get the name after the slash from the repoName as my imageName
variables:
vmImageName: 'ubuntu-18.04'
repoName: $(Build.Repository.Name)
imageName: ${repoName##*/}
The repoName is top/cci I expected the print out result for imageName is cci. But the result is ${top/cci##*/}
How can I use the bash script to get the strings after the slash during the variable assignment?


imageName?