From dd5f596318d7bc3332f17e093fabb488d189d068 Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Thu, 24 Aug 2017 10:38:10 +0530 Subject: Add a nightly pipeline job for master Change-Id: I518bd1c503c83b397e892dc58b5185ea6a896170 --- build-gluster-org/jobs/clang.yml | 3 -- build-gluster-org/jobs/cppcheck.yml | 3 -- build-gluster-org/jobs/lcov.yml | 3 -- build-gluster-org/jobs/nightly-pipeline-master.yml | 19 +++++++ build-gluster-org/jobs/regression-test-burn-in.yml | 5 +- .../jobs/regression-test-ec-stripe-cache.yml | 5 +- .../jobs/regression-test-with-multiplex.yml | 3 -- build-gluster-org/scripts/nightly-master.dsl | 58 ++++++++++++++++++++++ 8 files changed, 79 insertions(+), 20 deletions(-) create mode 100644 build-gluster-org/jobs/nightly-pipeline-master.yml create mode 100644 build-gluster-org/scripts/nightly-master.dsl (limited to 'build-gluster-org') diff --git a/build-gluster-org/jobs/clang.yml b/build-gluster-org/jobs/clang.yml index 8d5a4f1..87b6852 100644 --- a/build-gluster-org/jobs/clang.yml +++ b/build-gluster-org/jobs/clang.yml @@ -18,9 +18,6 @@ x: 30 - one-build-per-node - triggers: - - timed: "0 14 * * *" - builders: - shell: !include-raw: ../scripts/clang.sh diff --git a/build-gluster-org/jobs/cppcheck.yml b/build-gluster-org/jobs/cppcheck.yml index 333470d..437fcdb 100644 --- a/build-gluster-org/jobs/cppcheck.yml +++ b/build-gluster-org/jobs/cppcheck.yml @@ -18,9 +18,6 @@ x: 30 - one-build-per-node - triggers: - - timed: "0 14 * * *" - builders: - shell: !include-raw: ../scripts/cppcheck.sh diff --git a/build-gluster-org/jobs/lcov.yml b/build-gluster-org/jobs/lcov.yml index 52258ab..62a2a54 100644 --- a/build-gluster-org/jobs/lcov.yml +++ b/build-gluster-org/jobs/lcov.yml @@ -18,9 +18,6 @@ x: 30 - one-build-per-node - triggers: - - timed: "0 14 * * *" - builders: - shell: !include-raw: ../scripts/lcov.sh diff --git a/build-gluster-org/jobs/nightly-pipeline-master.yml b/build-gluster-org/jobs/nightly-pipeline-master.yml new file mode 100644 index 0000000..4857c13 --- /dev/null +++ b/build-gluster-org/jobs/nightly-pipeline-master.yml @@ -0,0 +1,19 @@ +- job: + name: nightly-master + description: Run the pipeline for master branch + project-type: pipeline + dsl: !include-raw: ../scripts/nightly-master.dsl + + + triggers: + - timed: "H 14 * * *" + + parameters: + - string: + default: refs/heads/master + description: 'For review 12345 and patch set 6, this will be refs/changes/45/12345/6. Default: Tip of master' + name: GERRIT_REFSPEC + - string: + default: master + description: 'Name of the branch you want to build from. We usually build from master' + name: GERRIT_BRANCH diff --git a/build-gluster-org/jobs/regression-test-burn-in.yml b/build-gluster-org/jobs/regression-test-burn-in.yml index 1aacf79..3ca4000 100644 --- a/build-gluster-org/jobs/regression-test-burn-in.yml +++ b/build-gluster-org/jobs/regression-test-burn-in.yml @@ -17,13 +17,10 @@ x: 90 - one-build-per-node - triggers: - - timed: "0 14 * * *" - publishers: - email: recipients: maintainers@gluster.org - send-to-individuals: true + send-to-individuals: false - post-tasks: - matches: - log-text: Build was aborted diff --git a/build-gluster-org/jobs/regression-test-ec-stripe-cache.yml b/build-gluster-org/jobs/regression-test-ec-stripe-cache.yml index 82ef956..6ce6938 100644 --- a/build-gluster-org/jobs/regression-test-ec-stripe-cache.yml +++ b/build-gluster-org/jobs/regression-test-ec-stripe-cache.yml @@ -17,13 +17,10 @@ x: 90 - one-build-per-node - triggers: - - timed: "0 14 * * *" - publishers: - email: recipients: maintainers@gluster.org - send-to-individuals: true + send-to-individuals: false - post-tasks: - matches: - log-text: Build was aborted diff --git a/build-gluster-org/jobs/regression-test-with-multiplex.yml b/build-gluster-org/jobs/regression-test-with-multiplex.yml index 9ea441d..9036035 100644 --- a/build-gluster-org/jobs/regression-test-with-multiplex.yml +++ b/build-gluster-org/jobs/regression-test-with-multiplex.yml @@ -17,9 +17,6 @@ x: 90 - one-build-per-node - triggers: - - timed: "0 14 * * *" - publishers: - email: recipients: maintainers@gluster.org diff --git a/build-gluster-org/scripts/nightly-master.dsl b/build-gluster-org/scripts/nightly-master.dsl new file mode 100644 index 0000000..c1af9f8 --- /dev/null +++ b/build-gluster-org/scripts/nightly-master.dsl @@ -0,0 +1,58 @@ +pipeline { + agent { label 'smoke7' } + + stages { + stage('Build RPM') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '$GERRIT_BRANCH']], userRemoteConfigs: [[name: 'origin', refspec: '$GERRIT_REFSPEC', url: 'git://review.gluster.org/glusterfs']]]) + build job: 'rpm-el7', parameters: [string(name: 'GERRIT_REFSPEC', value: "$GERRIT_REFSPEC"), string(name: 'GERRIT_BRANCH', value: "$GERRIT_BRANCH")], propagate: true + build job: 'rpm-fedora', parameters: [string(name: 'GERRIT_REFSPEC', value: "$GERRIT_REFSPEC"), string(name: 'GERRIT_BRANCH', value: "$GERRIT_BRANCH")], propagate: true + } + } + stage('Tests') { + parallel { + stage('regression') { + steps { + build job: 'regression-test-burn-in', parameters: [string(name: 'GERRIT_REFSPEC', value: 'refs/heads/master'), string(name: 'GERRIT_BRANCH', value: 'master')], propagate: true + echo 'Running centos7 regression' + } + } + stage('regression-with-multiplex') { + steps { + build job: 'regression-test-with-multiplex', parameters: [string(name: 'GERRIT_REFSPEC', value: 'refs/heads/master'), string(name: 'GERRIT_BRANCH', value: 'master')], propagate: true + echo 'Running centos7 regression with multiplex' + } + } + stage('regression-ec-stripe-cache') { + steps { + build job: 'regression-test-ec-stripe-cache', parameters: [string(name: 'GERRIT_REFSPEC', value: 'refs/heads/master'), string(name: 'GERRIT_BRANCH', value: 'master')], propagate: true + echo 'Running centos7 regression with EC stripe cache' + } + } + stage('clang-scan') { + steps { + build job: 'clang-scan', parameters: [string(name: 'GERRIT_REFSPEC', value: 'refs/heads/master'), string(name: 'GERRIT_BRANCH', value: 'master')], propagate: true + echo 'Running clang scan' + } + } + stage('cppcheck') { + steps { + build job: 'cppcheck', parameters: [string(name: 'GERRIT_REFSPEC', value: 'refs/heads/master'), string(name: 'GERRIT_BRANCH', value: 'master')], propagate: true + echo 'Running cppcheck' + } + } + stage('line-coverage') { + steps { + build job: 'line-coverage', parameters: [string(name: 'GERRIT_REFSPEC', value: 'refs/heads/master'), string(name: 'GERRIT_BRANCH', value: 'master')], propagate: true + echo 'Running line coverage' + } + } + } + } + } + post { + always { + deleteDir() /* clean up our workspace */ + } + } +} -- cgit