Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
variables:
SKIP_E2E_TESTS: "false"

stages:
- pre
- build
Expand Down Expand Up @@ -25,5 +28,7 @@ build-layers:
- artifact: ci/build-pipeline.yaml
job: generator
strategy: depend
forward:
pipeline_variables: true
rules:
- when: on_success
- when: on_success
10 changes: 10 additions & 0 deletions ci/input_files/build.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10-py3
rules:
- if: '$SKIP_E2E_TESTS == "true"'
when: never
- if: '"{{ $environment_name }}" == "sandbox" && $REGION == "{{ $e2e_region }}" && "{{ $runtime.arch }}" == "amd64"'
when: on_success
- if: '"{{ $environment_name }}" == "sandbox"'
Expand Down Expand Up @@ -247,6 +249,10 @@ e2e-test:
trigger:
project: DataDog/serverless-e2e-tests
strategy: depend
rules:
- if: '$SKIP_E2E_TESTS == "true"'
when: never
- when: on_success
variables:
LANGUAGES_SUBSET: python
# These env vars are inherited from the dotenv reports of the publish-layer jobs
Expand All @@ -267,6 +273,10 @@ e2e-test-status:
image: registry.ddbuild.io/images/docker:20.10-py3
tags: ["arch:amd64"]
timeout: 3h
rules:
- if: '$SKIP_E2E_TESTS == "true"'
when: never
- when: on_success
script: |
GITLAB_API_TOKEN=$(aws ssm get-parameter --region us-east-1 --name "ci.${CI_PROJECT_NAME}.serverless-e2e-gitlab-token" --with-decryption --query "Parameter.Value" --out text)
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/bridges"
Expand Down
Loading