From: David Galloway Date: Mon, 29 Jun 2020 22:32:00 +0000 (-0400) Subject: ceph-dashboard-pr-backend: Only run during PR pipeline X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3ffaaaac648353599f5d42515586657daa4f486d;p=ceph-build.git ceph-dashboard-pr-backend: Only run during PR pipeline Signed-off-by: David Galloway --- diff --git a/ceph-dashboard-pr-backend/build/build b/ceph-dashboard-pr-backend/build/build index 7460f2f5..91de7b9a 100644 --- a/ceph-dashboard-pr-backend/build/build +++ b/ceph-dashboard-pr-backend/build/build @@ -1,8 +1,2 @@ -#!/bin/bash -e -n_build_jobs=$(get_nr_build_jobs) -n_test_jobs=$(($(nproc) / 4)) -export CHECK_MAKEOPTS="-j${n_test_jobs} -N -Q" -export BUILD_MAKEOPTS="-j${n_build_jobs}" -timeout 3h ./run-make-check.sh -sleep 5 -ps -ef | grep ceph || true +#!/bin/bash +update_github_status "ceph" "pending" "ceph dashboard backend API tests" "Running" diff --git a/ceph-dashboard-pr-backend/build/failure b/ceph-dashboard-pr-backend/build/failure new file mode 100644 index 00000000..a24be93f --- /dev/null +++ b/ceph-dashboard-pr-backend/build/failure @@ -0,0 +1,2 @@ +#!/bin/bash +update_github_status "ceph" "failure" "ceph dashboard backend API tests" diff --git a/ceph-dashboard-pr-backend/build/finish b/ceph-dashboard-pr-backend/build/finish new file mode 100644 index 00000000..920e7860 --- /dev/null +++ b/ceph-dashboard-pr-backend/build/finish @@ -0,0 +1,2 @@ +#!/bin/bash +update_github_status "ceph" "success" "ceph dashboard backend API tests" diff --git a/ceph-dashboard-pr-backend/config/definitions/ceph-dashboard-pr-backend.yml b/ceph-dashboard-pr-backend/config/definitions/ceph-dashboard-pr-backend.yml index 13aa3fd4..6a3d18d4 100644 --- a/ceph-dashboard-pr-backend/config/definitions/ceph-dashboard-pr-backend.yml +++ b/ceph-dashboard-pr-backend/config/definitions/ceph-dashboard-pr-backend.yml @@ -1,6 +1,5 @@ - job: name: ceph-dashboard-pr-backend - project-type: freestyle defaults: global concurrent: true node: huge && bionic && x86_64 && !xenial && !trusty @@ -25,26 +24,6 @@ name: sha1 description: "commit id or a refname, like 'origin/pr/72/head'" - triggers: - - github-pull-request: - allow-whitelist-orgs-as-admins: true - org-list: - - ceph - white-list-target-branches: - - master - - octopus - - nautilus - trigger-phrase: 'jenkins test dashboard backend' - skip-build-phrase: '^jenkins do not test.*' - only-trigger-phrase: false - github-hooks: true - permit-all: true - auto-close-on-fail: false - status-context: "ceph dashboard backend API tests" - started-status: "running ceph dashboard backend API tests" - success-status: "ceph dashboard backend API tests succeeded" - failure-status: "ceph dashboard backend API tests failed" - scm: - git: url: https://github.com/ceph/ceph.git @@ -58,12 +37,41 @@ wipe-workspace: true builders: + - copyartifact: + project: ceph-pull-requests + filter: 'build/**' + which-build: multijob-build - shell: !include-raw: - ../../../scripts/build_utils.sh - ../../build/build - ../../../scripts/dashboard/install-backend-api-test-deps.sh - shell: "cd src/pybind/mgr/dashboard; timeout 7200 ./run-backend-api-tests.sh" + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/finish wrappers: - ansicolor + - credentials-binding: + - text: + credential-id: 8dff73ff-506c-4397-969d-023f15aedea9 + variable: GITHUB_API_TOKEN + + publishers: + - archive: + artifacts: 'build/**' + allow-empty: false + latest-only: false + - postbuildscript: + builders: + - role: SLAVE + build-on: + - FAILURE + - ABORTED + build-steps: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/failure