Skip to content
Open
15 changes: 10 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,18 @@ e2e:
- mkdir -p $CI_PROJECT_DIR/test/e2e/scripts && cp $CI_PROJECT_DIR/install_script*.sh $CI_PROJECT_DIR/test/e2e/scripts
# Retrieve common go deps
- mkdir -p $GOPATH/pkg/mod && tar xJf modcache_e2e.tar.xz -C $GOPATH/pkg/mod && rm -f modcache_e2e.tar.xz
# Install orchestrion
- go install github.com/DataDog/orchestrion@v1.1.0
- cd test/e2e && orchestrion pin && go mod tidy
- cd ../..
- export GOFLAGS="${GOFLAGS} '-toolexec=orchestrion toolexec'"
- export DD_ENV=ci
- export DD_CIVISIBILITY_ENABLED=true
- export DD_CIVISIBILITY_AGENTLESS_ENABLED=true
- export DD_SERVICE=agent-linux-install-script
- export DD_TAGS="test.codeowners:@DataDog/agent-delivery ci.job.name:e2e ci.stage.name:e2e"
script:
- cd test/e2e && gotestsum --format standard-verbose --junitfile "junit-${CI_JOB_ID}.xml" -- -timeout 0s . -v --flavor ${FLAVOR} --platform ${PLATFORM} --scriptPath ${SCRIPT_PATH} ${EXTRA_PARAMS}
after_script:
- set +x
- export DATADOG_API_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.agent-linux-install-script.datadog_api_key_2 --with-decryption --query "Parameter.Value" --out text)
- set -x
- for f in test/e2e/*.xml; do datadog-ci junit upload --service agent-linux-install-script --tags test.codeowners:@DataDog/agent-platform --tags ci.job.name:e2e --tags ci.stage.name:e2e "$f"; done

rules:
- if: $CI_COMMIT_TAG
Expand Down