I'm trying to pass parameters to a shell script from an Azure pipeline. The shell script is being hit, but the parameters aren't coming over. Here is the pipeline task:
- task: AzureCLI@2
inputs:
azureSubscription: 'our-subscription'
scriptType: 'bash'
scriptLocation: 'scriptPath'
scriptPath: 'Path/to/shellscript/cli.sh'
arguments:
addSpnToEnvironment:
${{ variables.appVersion }}
${{ variables.bNumber }}
Here is some of the cli.sh
appVersion=$1
buildNo=$2
echo printing values:
echo appVersion= "$appVersion"
echo buildNo= "$buildNo"
Here is some of the log within the pipeline task
printing values:
appVersion=
buildNo=
D:\a\1\s\path\to\shellscript\cli.sh: line 72: wget: command not found
Also note that the wget command is not being recognized either. What am I missing?
argumentsparameter is empty and it looks like you're trying to pass them viaaddSpnToEnvironment, which I'm honestly surprised is even syntactically valid.wgetnot being found is probably becausewgetisn't installed on the agent you're using.