[ios, android] Update curl command to indicate there is no password (as per https://circleci.com/docs/api/#authentication) (#15796)
This commit is contained in:
@@ -839,7 +839,7 @@ jobs:
|
||||
command: |
|
||||
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
curl -u $MOBILE_METRICS_TOKEN -d build_parameters[CIRCLE_JOB]=android-core-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
curl -u ${MOBILE_METRICS_TOKEN}: -d build_parameters[CIRCLE_JOB]=android-core-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
fi
|
||||
fi
|
||||
- run:
|
||||
@@ -847,7 +847,7 @@ jobs:
|
||||
command: |
|
||||
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
curl -u $MOBILE_METRICS_TOKEN -d build_parameters[CIRCLE_JOB]=android-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
curl -u ${MOBILE_METRICS_TOKEN}: -d build_parameters[CIRCLE_JOB]=android-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
fi
|
||||
fi
|
||||
- run:
|
||||
@@ -1241,7 +1241,7 @@ jobs:
|
||||
command: |
|
||||
if [[ $CIRCLE_BRANCH == master ]]; then
|
||||
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
|
||||
curl -u $MOBILE_METRICS_TOKEN -d build_parameters[CIRCLE_JOB]=ios-maps-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
curl -u ${MOBILE_METRICS_TOKEN}: -d build_parameters[CIRCLE_JOB]=ios-maps-benchmark https://circleci.com/api/v1.1/project/github/mapbox/mobile-metrics/tree/master
|
||||
else
|
||||
echo "MOBILE_METRICS_TOKEN not provided"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user