File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ set -o errexit
1717set -o nounset
1818set -o pipefail
1919
20+ # for Prow we use the provided AZURE_CREDENTIALS file
21+ if [[ -n " ${AZURE_CREDENTIALS} " ]]; then
22+ export AZURE_SUBSCRIPTION_ID=" $( cat ${AZURE_CREDENTIALS} | grep SubscriptionID | cut -d ' =' -f 2) "
23+ export AZURE_TENANT_ID=" $( cat ${AZURE_CREDENTIALS} | grep TenantID | cut -d ' =' -f 2) "
24+ export AZURE_CLIENT_ID=" $( cat ${AZURE_CREDENTIALS} | grep ClientID | cut -d ' =' -f 2) "
25+ # password might contain an '=' sign so we need to get all the fields after the first '='
26+ export AZURE_CLIENT_SECRET=" $( cat ${AZURE_CREDENTIALS} | grep ClientSecret | cut -d ' =' -f 2-) "
27+ fi
28+
2029# Verify the required Environment Variables are present.
2130: " ${AZURE_SUBSCRIPTION_ID:? Environment variable empty or not defined.} "
2231: " ${AZURE_TENANT_ID:? Environment variable empty or not defined.} "
You can’t perform that action at this time.
0 commit comments