forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move CI job configuration to elasticsearch repository
- Loading branch information
1 parent
20a1862
commit a64a6c7
Showing
69 changed files
with
1,441 additions
and
96 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ | |
|
||
ES_BUILD_JAVA=openjdk15 | ||
ES_RUNTIME_JAVA=openjdk11 | ||
GRADLE_TASK=build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
|
||
##### GLOBAL METADATA | ||
|
||
- meta: | ||
cluster: elasticsearch-ci | ||
|
||
##### JOB DEFAULTS | ||
|
||
- job: | ||
vault: | ||
url: https://secrets.elastic.co:8200 | ||
role_id: 1ba1ac3e-aee4-d040-d9a3-6ae23bd2b3db | ||
node: "general-purpose" | ||
concurrent: true | ||
logrotate: | ||
daysToKeep: 30 | ||
numToKeep: 90 | ||
artifactDaysToKeep: 7 | ||
parameters: | ||
- string: | ||
name: branch_specifier | ||
default: "refs/heads/%BRANCH%" | ||
description: "the Git branch specifier to build (<branchName>, <tagName>, <commitId>, etc.)\n" | ||
scm: | ||
- git: | ||
name: origin | ||
# master node jenkins user ~/.ssh | ||
credentials-id: f6c7695a-671e-4f4f-a331-acdce44ff9ba | ||
reference-repo: "/var/lib/jenkins/.git-references/elasticsearch.git" | ||
branches: | ||
- "${branch_specifier}" | ||
url: "https://github.com/elastic/elasticsearch.git" | ||
basedir: "" | ||
wipe-workspace: true | ||
triggers: [] | ||
wrappers: | ||
- timeout: | ||
type: absolute | ||
timeout: 480 | ||
fail: true | ||
- ansicolor | ||
- timestamps | ||
- gradle-build-scan | ||
- inject-passwords: | ||
global: false | ||
job-passwords: | ||
- name: VAULT_ADDR | ||
password: https://secrets.elastic.co:8200 | ||
mask-password-params: true | ||
properties: | ||
- github: | ||
url: https://github.com/elastic/elasticsearch/ | ||
- inject: | ||
properties-content: | | ||
HOME=$JENKINS_HOME | ||
GRADLEW=./gradlew --parallel --scan --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ | ||
GRADLEW_BAT=./gradlew.bat --parallel --scan --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ | ||
publishers: | ||
- junit: | ||
results: "**/*Junit/*.xml, **/test-results/*/*.xml" | ||
keep-long-stdio: true | ||
allow-empty-results: true | ||
# Upload additional logs | ||
- google-cloud-storage: | ||
credentials-id: 'elasticsearch-ci-gcs-plugin' | ||
uploads: | ||
- classic: | ||
file-pattern: 'build/*.tar.bz2' | ||
storage-location: 'gs://elasticsearch-ci-artifacts/jobs/$JOB_NAME' | ||
share-publicly: false | ||
upload-for-failed-jobs: true | ||
show-inline: true | ||
# Notify homer | ||
- postbuildscript: | ||
builders: | ||
- role: SLAVE | ||
build-on: | ||
- SUCCESS | ||
- FAILURE | ||
- UNSTABLE | ||
build-steps: | ||
- http-request: | ||
url: https://homer.app.elstc.co/webhook/jenkins/build-finished | ||
mode: GET | ||
custom-headers: | ||
- name: X-Jenkins-Build | ||
value: ${BUILD_URL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+branch-consistency | ||
display-name: "elastic / elasticsearch # %BRANCH% - branch consistency" | ||
description: Testing of the Elasticsearch master branch version consistency. | ||
triggers: | ||
- timed: "H 7 * * *" | ||
builders: | ||
- inject: | ||
properties-file: '.ci/java-versions.properties' | ||
properties-content: | | ||
JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA | ||
- shell: | | ||
#!/usr/local/bin/runbld --redirect-stderr | ||
$WORKSPACE/.ci/scripts/run-gradle.sh branchConsistency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+branch-protection | ||
display-name: "elastic / elasticsearch # %BRANCH% - branch protection" | ||
description: Elasticsearch %BRANCH% branch protection. | ||
node: master | ||
triggers: | ||
- timed: "H 7 * * *" | ||
scm: [] | ||
parameters: [] | ||
builders: | ||
- shell: | | ||
#!/bin/bash | ||
set +x | ||
STATUS=$(curl -s https://api.github.com/repos/elastic/elasticsearch/branches/%BRANCH% | jq '.protected') | ||
echo "Branch %BRANCH% protection status is: $STATUS" | ||
if [[ "$STATUS" == "false" ]]; then | ||
echo "Development branch %BRANCH% is not set as protected in GitHub but should be." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+pull-request | ||
display-name: Pull Requests | ||
project-type: folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+triggers | ||
display-name: Periodic Triggers | ||
project-type: folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
jjbb-template: generic-gradle-unix.yml | ||
vars: | ||
- job-name: elastic+elasticsearch+%BRANCH%+intake+multijob+bwc | ||
- job-display-name: "elastic / elasticsearch # %BRANCH% - intake bwc" | ||
- job-description: Elasticsearch %BRANCH% branch intake backwards compatibility checks. | ||
- gradle-args: "-Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files bwcTestSnapshots" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
jjbb-template: generic-gradle-unix.yml | ||
vars: | ||
- job-name: elastic+elasticsearch+%BRANCH%+intake+multijob+part1 | ||
- job-display-name: "elastic / elasticsearch # %BRANCH% - intake part 1" | ||
- job-description: Elasticsearch %BRANCH% branch intake check part 1. | ||
- gradle-args: "-Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
jjbb-template: generic-gradle-unix.yml | ||
vars: | ||
- job-name: elastic+elasticsearch+%BRANCH%+intake+multijob+part2 | ||
- job-display-name: "elastic / elasticsearch # %BRANCH% - intake part 2" | ||
- job-description: Elasticsearch %BRANCH% branch intake check part 2. | ||
- gradle-args: "-Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart2" |
7 changes: 7 additions & 0 deletions
7
.ci/jobs.t/elastic+elasticsearch+intake+multijob+rest-compat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
jjbb-template: generic-gradle-unix.yml | ||
vars: | ||
- job-name: elastic+elasticsearch+%BRANCH%+intake+multijob+rest-compat | ||
- job-display-name: "elastic / elasticsearch # %BRANCH% - intake rest compatibility" | ||
- job-description: Elasticsearch %BRANCH% branch intake REST compatibility checks. | ||
- gradle-args: "-Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkRestCompat" |
7 changes: 7 additions & 0 deletions
7
.ci/jobs.t/elastic+elasticsearch+intake+multijob+sanity-check.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
jjbb-template: generic-gradle-unix.yml | ||
vars: | ||
- job-name: elastic+elasticsearch+%BRANCH%+intake+multijob+sanity-check | ||
- job-display-name: "elastic / elasticsearch # %BRANCH% - intake sanity check" | ||
- job-description: Elasticsearch %BRANCH% branch intake sanity check. | ||
- gradle-args: "-Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files precommit" |
11 changes: 11 additions & 0 deletions
11
.ci/jobs.t/elastic+elasticsearch+intake+multijob+update-last-good-commit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+intake+multijob+update-last-good-commit | ||
display-name: "elastic / elasticsearch # %BRANCH% - update last good commit" | ||
description: Elasticsearch %BRANCH% branch update last good commit in build-stats. | ||
node: light | ||
properties: [] | ||
builders: | ||
- shell: | | ||
#!/usr/local/bin/runbld --job-name elastic+elasticsearch+%BRANCH%+git+push | ||
/usr/bin/true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+intake | ||
display-name: "elastic / elasticsearch # %BRANCH% - intake" | ||
description: "Testing of the Elasticsearch %BRANCH% branch on every push.\n" | ||
project-type: multijob | ||
node: master | ||
vault: [] | ||
triggers: | ||
# We use this trigger instead of the provided "github" webhook trigger because it's more robust. | ||
# Here we only trigger builds for pushes to the corresponding branch, rather than a push to any branch of the | ||
# configured git repository. This avoids duplicate builds being triggered when pushes to multiple branches are | ||
# done in quick succession. | ||
- generic-webhook-trigger: | ||
post-content-params: | ||
- type: JSONPath | ||
key: ref | ||
value: '$.ref' | ||
regex-filter-text: '$ref' | ||
regex-filter-expression: "^refs/heads/%BRANCH%$" | ||
cause: Push to GitHub (refs/heads/%BRANCH%) | ||
silent-response: true | ||
scm: | ||
- git: | ||
wipe-workspace: false | ||
builders: | ||
- multijob: | ||
name: Sanity Check | ||
projects: | ||
- name: elastic+elasticsearch+%BRANCH%+intake+multijob+sanity-check | ||
kill-phase-on: NEVER | ||
current-parameters: true | ||
git-revision: true | ||
- multijob: | ||
name: Verification | ||
projects: | ||
- name: elastic+elasticsearch+%BRANCH%+intake+multijob+part1 | ||
kill-phase-on: NEVER | ||
current-parameters: true | ||
git-revision: true | ||
- name: elastic+elasticsearch+%BRANCH%+intake+multijob+part2 | ||
kill-phase-on: NEVER | ||
current-parameters: true | ||
git-revision: true | ||
- name: elastic+elasticsearch+%BRANCH%+intake+multijob+bwc | ||
kill-phase-on: NEVER | ||
current-parameters: true | ||
git-revision: true | ||
- name: elastic+elasticsearch+%BRANCH%+intake+multijob+rest-compat | ||
kill-phase-on: NEVER | ||
current-parameters: true | ||
git-revision: true | ||
- multijob: | ||
name: Update last good commit | ||
projects: | ||
- name: elastic+elasticsearch+%BRANCH%+intake+multijob+update-last-good-commit | ||
kill-phase-on: NEVER | ||
current-parameters: true | ||
git-revision: true |
36 changes: 36 additions & 0 deletions
36
.ci/jobs.t/elastic+elasticsearch+multijob+packaging-tests-unix.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+multijob+packaging-tests-unix | ||
display-name: "elastic / elasticsearch # %BRANCH% - unix packaging tests" | ||
description: "Testing of the Elasticsearch %BRANCH% branch unix packaging test support matrix.\n" | ||
project-type: matrix | ||
node: master | ||
scm: | ||
- git: | ||
wipe-workspace: false | ||
axes: | ||
- axis: | ||
type: label-expression | ||
name: os | ||
values: | ||
- centos-7-packaging | ||
- centos-8-packaging | ||
- debian-9-packaging | ||
- debian-10-packaging | ||
- fedora-32-packaging | ||
- opensuse-15-1-packaging | ||
- oraclelinux-7-packaging | ||
- oraclelinux-8-packaging | ||
- sles-12-packaging | ||
- sles-15-packaging | ||
- ubuntu-18.04-packaging | ||
- ubuntu-20.04-packaging | ||
builders: | ||
- inject: | ||
properties-file: '.ci/java-versions.properties' | ||
properties-content: | | ||
JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA | ||
RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA | ||
- shell: | | ||
#!/usr/local/bin/runbld --redirect-stderr | ||
./.ci/os.sh --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ destructivePackagingTest |
30 changes: 30 additions & 0 deletions
30
.ci/jobs.t/elastic+elasticsearch+multijob+packaging-tests-upgrade.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+multijob+packaging-tests-upgrade | ||
display-name: "elastic / elasticsearch # %BRANCH% - packaging upgrade tests" | ||
description: "Testing of the Elasticsearch %BRANCH% branch packaging test upgrade support matrix.\n" | ||
project-type: matrix | ||
node: master | ||
scm: | ||
- git: | ||
wipe-workspace: false | ||
axes: | ||
- axis: | ||
type: label-expression | ||
name: os | ||
values: | ||
- centos-8-packaging | ||
- ubuntu-20.04-packaging | ||
- axis: | ||
type: yaml | ||
filename: ".ci/bwcVersions" | ||
name: BWC_VERSION | ||
builders: | ||
- inject: | ||
properties-file: '.ci/java-versions.properties' | ||
properties-content: | | ||
JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA | ||
RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA | ||
- shell: | | ||
#!/usr/local/bin/runbld --redirect-stderr | ||
./.ci/os.sh --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ destructiveDistroUpgradeTest.v$BWC_VERSION |
31 changes: 31 additions & 0 deletions
31
.ci/jobs.t/elastic+elasticsearch+multijob+packaging-tests-windows.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
- job: | ||
name: elastic+elasticsearch+%BRANCH%+multijob+packaging-tests-windows | ||
display-name: "elastic / elasticsearch # %BRANCH% - windows packaging tests" | ||
description: "Testing of the Elasticsearch %BRANCH% branch windows packaging test support matrix.\n" | ||
project-type: matrix | ||
node: master | ||
scm: | ||
- git: | ||
wipe-workspace: false | ||
axes: | ||
- axis: | ||
type: label-expression | ||
name: os | ||
values: | ||
- "windows-2012-r2" | ||
- "windows-2016" | ||
- "windows-2019" | ||
builders: | ||
- inject: | ||
properties-file: '.ci/java-versions.properties' | ||
properties-content: | | ||
JAVA_HOME=$USERPROFILE\\.java\\$ES_BUILD_JAVA | ||
RUNTIME_JAVA_HOME=$USERPROFILE\\.java\\$ES_RUNTIME_JAVA | ||
- batch: | | ||
del /f /s /q %USERPROFILE%\.gradle\init.d\*.* | ||
mkdir %USERPROFILE%\.gradle\init.d | ||
copy .ci\init.gradle %USERPROFILE%\.gradle\init.d\ | ||
( | ||
echo powershell.exe .\.ci\os.ps1 ^|^| exit /b 1 | ||
) | java -jar "C:\Program Files\infra\bin\runbld" --redirect-stderr - |
Oops, something went wrong.