From 5d077718d5b4ad9a713e4f3e22c179d67efd5bde Mon Sep 17 00:00:00 2001 From: Jonah Bull Date: Wed, 19 Dec 2018 15:59:00 -0600 Subject: [PATCH] Add JJBB jobs to .ci --- .ci/jobs/defaults.yml | 60 +++++++++++++++++++ .ci/jobs/elastic+elasticsearch-py+master.yml | 18 ++++++ .../elastic+elasticsearch-py+pull-request.yml | 19 ++++++ 3 files changed, 97 insertions(+) create mode 100644 .ci/jobs/defaults.yml create mode 100644 .ci/jobs/elastic+elasticsearch-py+master.yml create mode 100644 .ci/jobs/elastic+elasticsearch-py+pull-request.yml diff --git a/.ci/jobs/defaults.yml b/.ci/jobs/defaults.yml new file mode 100644 index 00000000..84c57bb9 --- /dev/null +++ b/.ci/jobs/defaults.yml @@ -0,0 +1,60 @@ +--- + +##### GLOBAL METADATA + +- meta: + cluster: clients-ci + +##### JOB DEFAULTS + +- job: + project-type: matrix + logrotate: + daysToKeep: 30 + numToKeep: 100 + properties: + - github: + url: https://github.com/elastic/elasticsearch-py/ + - inject: + properties-content: HOME=$JENKINS_HOME + concurrent: true + node: flyweight + scm: + - git: + name: origin + credentials-id: f6c7695a-671e-4f4f-a331-acdce44ff9ba + reference-repo: /var/lib/jenkins/.git-references/elasticsearch-py.git + url: git@github.com:elastic/elasticsearch-py.git + wipe-workspace: 'True' + axes: + - axis: + type: slave + name: label + values: + - linux + - axis: + type: yaml + filename: .ci/test-matrix.yml + name: ELASTICSEARCH_VERSION + - axis: + type: yaml + filename: .ci/test-matrix.yml + name: PYTHON_VERSION + yaml-strategy: + exclude-key: exclude + filename: .ci/test-matrix.yml + wrappers: + - ansicolor + - timeout: + type: absolute + timeout: 120 + fail: true + - timestamps + - workspace-cleanup + builders: + - shell: |- + #!/usr/local/bin/runbld + .ci/run-tests + publishers: + - email: + recipients: infra-root+build@elastic.co diff --git a/.ci/jobs/elastic+elasticsearch-py+master.yml b/.ci/jobs/elastic+elasticsearch-py+master.yml new file mode 100644 index 00000000..a5e43468 --- /dev/null +++ b/.ci/jobs/elastic+elasticsearch-py+master.yml @@ -0,0 +1,18 @@ +--- +- job: + name: elastic+elasticsearch-py+master + display-name: 'elastic / elasticsearch-py # master' + description: Testing the elasticsearch-py master branch. + parameters: + - string: + name: branch_specifier + default: refs/heads/master + description: the Git branch specifier to build (<branchName>, <tagName>, + <commitId>, etc.) + scm: + - git: + branches: + - ${branch_specifier} + triggers: + - github + - timed: '@daily' diff --git a/.ci/jobs/elastic+elasticsearch-py+pull-request.yml b/.ci/jobs/elastic+elasticsearch-py+pull-request.yml new file mode 100644 index 00000000..9a1417f8 --- /dev/null +++ b/.ci/jobs/elastic+elasticsearch-py+pull-request.yml @@ -0,0 +1,19 @@ +--- +- job: + name: elastic+elasticsearch-py+pull-request + display-name: 'elastic / elasticsearch-py # pull-request' + description: Testing of elasticsearch-py pull requests. + scm: + - git: + branches: + - ${ghprbActualCommit} + refspec: +refs/pull/*:refs/remotes/origin/pr/* + triggers: + - github-pull-request: + org-list: + - elastic + allow-whitelist-orgs-as-admins: true + github-hooks: true + status-context: clients-ci + cancel-builds-on-update: true + publishers: []