-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathceph-dashboard-pull-requests.yml
More file actions
115 lines (108 loc) · 3.94 KB
/
Copy pathceph-dashboard-pull-requests.yml
File metadata and controls
115 lines (108 loc) · 3.94 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
- job:
name: ceph-dashboard-pull-requests
project-type: freestyle
defaults: global
concurrent: true
node: huge && jammy && x86_64
display-name: 'ceph: dashboard Pull Requests'
quiet-period: 5
block-downstream: false
block-upstream: false
retry-count: 3
properties:
- build-discarder:
days-to-keep: 15
num-to-keep: 300
artifact-days-to-keep: -1
artifact-num-to-keep: -1
- github:
url: https://github.com/ceph/ceph/
- rebuild:
auto-rebuild: true
- inject:
properties-content: |
TERM=xterm
parameters:
- string:
name: sha1
description: "commit id or a refname, like 'origin/pr/72/head'"
triggers:
- github-pull-request:
cancel-builds-on-update: true
allow-whitelist-orgs-as-admins: true
org-list:
- ceph
white-list-labels:
- dashboard
black-list-target-branches:
- luminous
trigger-phrase: 'jenkins test dashboard'
skip-build-phrase: '^jenkins do not test.*'
only-trigger-phrase: false
github-hooks: true
permit-all: false
auto-close-on-fail: false
status-context: "ceph dashboard tests"
started-status: "running ceph dashboard tests"
success-status: "ceph dashboard tests succeeded"
failure-status: "ceph dashboard tests failed"
scm:
- git:
url: https://github.com/ceph/ceph.git
branches:
- origin/pr/${{ghprbPullId}}/merge
refspec: +refs/pull/${{ghprbPullId}}/*:refs/remotes/origin/pr/${{ghprbPullId}}/*
browser: auto
timeout: 20
skip-tag: true
shallow-clone: true
wipe-workspace: true
builders:
- shell:
!include-raw-verbatim:
- ../../../scripts/build_utils.sh
- ../../build/check_docs_pr_only
- shell: "export FOR_MAKE_CHECK=1; timeout 2h ./src/script/run-make.sh --cmake-args '-DWITH_TESTS=OFF -DENABLE_GIT_VERSION=OFF'"
- shell:
!include-raw-verbatim:
- ../../../scripts/dashboard/install-e2e-test-deps.sh
- shell: |
export CYPRESS_ARGS="--record --key $CYPRESS_RECORD_KEY --tag $ghprbTargetBranch" COMMIT_INFO_MESSAGE="$ghprbPullTitle"
export APPLITOOLS_BATCH_ID="PR-${{ghprbPullId}}_${{BUILD_TAG}}"
export APPLITOOLS_BATCH_NAME="PR-${{ghprbPullId}}"
export APPLITOOLS_BRANCH_NAME="$ghprbSourceBranch"
export APPLITOOLS_PARENT_BRANCH_NAME="$ghprbTargetBranch"
mkdir -p .applitools
echo "$APPLITOOLS_BATCH_ID" > .applitools/BATCH_ID
cd src/pybind/mgr/dashboard; timeout 7200 ./run-frontend-e2e-tests.sh
wrappers:
- inject-passwords:
global: true
mask-password-params: true
- credentials-binding:
- username-password-separated:
credential-id: github-readonly-token
username: GITHUB_USER
password: GITHUB_PASS
- text:
credential-id: cd-cypress-record-key
variable: CYPRESS_RECORD_KEY
- text:
credential-id: cd-applitools-api-key
variable: APPLITOOLS_API_KEY
- raw:
xml: |
<com.applitools.jenkins.ApplitoolsBuildWrapper plugin="applitools-eyes@1.13">
<serverURL>https://eyes.applitools.com</serverURL>
<notifyByCompletion>true</notifyByCompletion>
<applitoolsApiKey/>
</com.applitools.jenkins.ApplitoolsBuildWrapper>
- ansicolor
publishers:
- archive:
artifacts: 'build/out/*.log, build/run/1/out/*.log, build/run/2/out/*.log'
allow-empty: true
latest-only: false
- junit:
results: 'src/pybind/mgr/dashboard/frontend/cypress/reports/results-*.xml'
allow-empty: true