forked from DataDog/dd-trace-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci-visibility-tests.yml
More file actions
44 lines (43 loc) · 1.32 KB
/
Copy pathci-visibility-tests.yml
File metadata and controls
44 lines (43 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ci-visibility-tests-check:
stage: ci-visibility-tests
image: registry.ddbuild.io/images/dd-octo-sts-ci-base:2025.06-1
tags: [ "arch:amd64" ]
needs: [ publish-artifacts-to-s3 ]
id_tokens:
DDOCTOSTS_ID_TOKEN:
aud: dd-octo-sts
rules:
- if: '$POPULATE_CACHE'
when: never
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH !~ /^(master|release\/)/'
when: on_success
- when: never
before_script:
- dd-octo-sts version
- dd-octo-sts debug --scope DataDog/dd-trace-java --policy self.gitlab.github-access.read
- dd-octo-sts token --scope DataDog/dd-trace-java --policy self.gitlab.github-access.read > github-token.txt
- gh auth login --with-token < github-token.txt
script:
- .gitlab/ci_visibility_generate_job.sh
after_script:
- dd-octo-sts revoke -t $(cat github-token.txt) || true
artifacts:
paths:
- ci-visibility-test-environment.yml
retry:
max: 2
when: always
ci-visibility-tests-trigger:
stage: ci-visibility-tests
needs: [ci-visibility-tests-check]
rules:
- if: '$POPULATE_CACHE'
when: never
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH !~ /^(master|release\/)/'
when: on_success
- when: never
trigger:
include:
- artifact: ci-visibility-test-environment.yml
job: ci-visibility-tests-check
strategy: depend