]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dashboard-pull-requests: Add Cypress key credential 1559/head
authorTiago Melo <tmelo@suse.com>
Tue, 28 Apr 2020 12:49:48 +0000 (12:49 +0000)
committerTiago Melo <tmelo@suse.com>
Thu, 7 May 2020 12:53:48 +0000 (12:53 +0000)
We need to have access to this key, to be able to record our e2e runs.

Signed-off-by: Tiago Melo <tmelo@suse.com>
ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml

index eddebe9fead1ce0da81f5329eda9c7ee0824ef04..28cae3da42f3c59b09bd0a170010e416e6ede1cf 100644 (file)
@@ -30,7 +30,7 @@
           allow-whitelist-orgs-as-admins: true
           org-list:
             - ceph
-          white-list-labels: 
+          white-list-labels:
             - dashboard
           black-list-target-branches:
             - luminous
       - shell:
           !include-raw:
             - ../../../scripts/dashboard/install-e2e-test-deps.sh
-      - shell: "cd src/pybind/mgr/dashboard; timeout 7200 ./run-frontend-e2e-tests.sh"
+      - shell: |
+          export CYPRESS_ARGS="--record --key $CYPRESS_RECORD_KEY --tag $ghprbTargetBranch" COMMIT_INFO_MESSAGE="$ghprbPullTitle"
+          cd src/pybind/mgr/dashboard; timeout 7200 ./run-frontend-e2e-tests.sh
+
+    wrappers:
+      - inject-passwords:
+          global: true
+          mask-password-params: true
+      - credentials-binding:
+          - text:
+              credential-id: cd-cypress-record-key
+              variable: CYPRESS_RECORD_KEY