[ACA-4232] Call the scan-env adf-cli command before and after each E2E job (#1911)

* [ACA-4232] Call the scan-env adf-cli command before and after each E2E job

* [ACA-4232] Updated host environment variable
This commit is contained in:
Thomas Hunter
2021-01-14 09:06:43 +00:00
committed by GitHub
parent e227248324
commit e14557ce43
4 changed files with 30 additions and 36 deletions

View File

@@ -2,3 +2,5 @@
# Upload protractor-smartrunner artifact related to this particular job to S3
./scripts/ci/utils/artifact-to-s3.sh -a "$SMART_RUNNER_DIRECTORY" -o "$S3_DBP_FOLDER/protractor-smartrunner-$TRAVIS_JOB_ID.tar.bz2"
./node_modules/@alfresco/adf-cli/bin/adf-cli scan-env --host "$API_CONTENT_HOST" -u "$ADMIN_EMAIL" -p "$ADMIN_PASSWORD"

View File

@@ -4,6 +4,9 @@ FROM=$1;
TO=$2;
PARAMS=$3;
echo "====== Scan environment ====="
./node_modules/@alfresco/adf-cli/bin/adf-cli scan-env --host "$API_CONTENT_HOST" -u "$ADMIN_EMAIL" -p "$ADMIN_PASSWORD"
echo "====== Check content UP ====="
./node_modules/@alfresco/adf-cli/bin/adf-cli check-cs-env --host "$API_CONTENT_HOST" -u "$ADMIN_EMAIL" -p "$ADMIN_PASSWORD" || exit 1