From 41109f0bc06d66880ef572903e750d8b16d0d4bb Mon Sep 17 00:00:00 2001 From: Jonah Bull Date: Fri, 21 Dec 2018 12:14:41 -0600 Subject: [PATCH] Add JJBB jobs to .ci (#749) This adds the Jenkins jobs definitions to the repo so they can be managed and updated here. --- .ci/jobs/defaults.yml | 64 +++++++++++++++++++ .ci/jobs/elastic+elasticsearch-js+master.yml | 14 ++++ .ci/jobs/elastic+elasticsearch-js+next.yml | 11 ++++ .../elastic+elasticsearch-js+pull-request.yml | 19 ++++++ 4 files changed, 108 insertions(+) create mode 100644 .ci/jobs/defaults.yml create mode 100644 .ci/jobs/elastic+elasticsearch-js+master.yml create mode 100644 .ci/jobs/elastic+elasticsearch-js+next.yml create mode 100644 .ci/jobs/elastic+elasticsearch-js+pull-request.yml diff --git a/.ci/jobs/defaults.yml b/.ci/jobs/defaults.yml new file mode 100644 index 000000000..3df606402 --- /dev/null +++ b/.ci/jobs/defaults.yml @@ -0,0 +1,64 @@ +--- + +##### 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-js/ + - 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-js.git + branches: + - ${branch_specifier} + url: https://github.com/elastic/elasticsearch-js.git + wipe-workspace: 'True' + triggers: + - github + 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: NODE_JS_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-js+master.yml b/.ci/jobs/elastic+elasticsearch-js+master.yml new file mode 100644 index 000000000..284d30f55 --- /dev/null +++ b/.ci/jobs/elastic+elasticsearch-js+master.yml @@ -0,0 +1,14 @@ +--- +- job: + name: elastic+elasticsearch-js+master + display-name: 'elastic / elasticsearch-js # master' + description: Testing the elasticsearch-js master branch. + parameters: + - string: + name: branch_specifier + default: refs/heads/master + description: the Git branch specifier to build (<branchName>, <tagName>, + <commitId>, etc.) + triggers: + - github + - timed: '@daily' diff --git a/.ci/jobs/elastic+elasticsearch-js+next.yml b/.ci/jobs/elastic+elasticsearch-js+next.yml new file mode 100644 index 000000000..333102322 --- /dev/null +++ b/.ci/jobs/elastic+elasticsearch-js+next.yml @@ -0,0 +1,11 @@ +--- +- job: + name: elastic+elasticsearch-js+next + display-name: 'elastic / elasticsearch-js # next' + description: Testing the elasticsearch-js next branch. + parameters: + - string: + name: branch_specifier + default: refs/heads/next + description: the Git branch specifier to build (<branchName>, <tagName>, + <commitId>, etc.) diff --git a/.ci/jobs/elastic+elasticsearch-js+pull-request.yml b/.ci/jobs/elastic+elasticsearch-js+pull-request.yml new file mode 100644 index 000000000..78cde9ecc --- /dev/null +++ b/.ci/jobs/elastic+elasticsearch-js+pull-request.yml @@ -0,0 +1,19 @@ +--- +- job: + name: elastic+elasticsearch-js+pull-request + display-name: 'elastic / elasticsearch-js # pull-request' + description: Testing of elasticsearch-js 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: []