forked from elastic/kibana
-
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.
Merge remote-tracking branch 'upstream/master' into patch-lodash-temp…
…late
- Loading branch information
Showing
20,630 changed files
with
781,758 additions
and
521,333 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,32 @@ | ||
{ | ||
"upstream": "elastic/kibana", | ||
"branches": [{ "name": "7.x", "checked": true }, "7.7", "7.6", "7.5", "7.4", "7.3", "7.2", "7.1", "7.0", "6.8", "6.7", "6.6", "6.5", "6.4", "6.3", "6.2", "6.1", "6.0", "5.6"], | ||
"labels": ["backport"] | ||
"targetBranchChoices": [ | ||
{ "name": "master", "checked": true }, | ||
{ "name": "7.x", "checked": true }, | ||
"7.8", | ||
"7.7", | ||
"7.6", | ||
"7.5", | ||
"7.4", | ||
"7.3", | ||
"7.2", | ||
"7.1", | ||
"7.0", | ||
"6.8", | ||
"6.7", | ||
"6.6", | ||
"6.5", | ||
"6.4", | ||
"6.3", | ||
"6.2", | ||
"6.1", | ||
"6.0", | ||
"5.6" | ||
], | ||
"targetPRLabels": ["backport"], | ||
"branchLabelMapping": { | ||
"^v8.0.0$": "master", | ||
"^v7.9.0$": "7.x", | ||
"^v(\\d+).(\\d+).\\d+$": "$1.$2" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -12,8 +12,7 @@ pipeline { | |
environment { | ||
BASE_DIR = 'src/github.com/elastic/kibana' | ||
HOME = "${env.WORKSPACE}" | ||
APM_ITS = 'apm-integration-testing' | ||
CYPRESS_DIR = 'x-pack/legacy/plugins/apm/e2e' | ||
E2E_DIR = 'x-pack/plugins/apm/e2e' | ||
PIPELINE_LOG_LEVEL = 'DEBUG' | ||
} | ||
options { | ||
|
@@ -39,36 +38,10 @@ pipeline { | |
shallow: false, reference: "/var/lib/jenkins/.git-references/kibana.git") | ||
script { | ||
dir("${BASE_DIR}"){ | ||
def regexps =[ "^x-pack/legacy/plugins/apm/.*" ] | ||
def regexps =[ "^x-pack/plugins/apm/.*" ] | ||
env.APM_UPDATED = isGitRegionMatch(patterns: regexps) | ||
} | ||
} | ||
dir("${APM_ITS}"){ | ||
git changelog: false, | ||
credentialsId: 'f6c7695a-671e-4f4f-a331-acdce44ff9ba', | ||
poll: false, | ||
url: "[email protected]:elastic/${APM_ITS}.git" | ||
} | ||
} | ||
} | ||
stage('Start services') { | ||
options { skipDefaultCheckout() } | ||
when { | ||
anyOf { | ||
expression { return params.FORCE } | ||
expression { return env.APM_UPDATED != "false" } | ||
} | ||
} | ||
steps { | ||
notifyStatus('Starting services', 'PENDING') | ||
dir("${APM_ITS}"){ | ||
sh './scripts/compose.py start master --no-kibana' | ||
} | ||
} | ||
post { | ||
unsuccessful { | ||
notifyStatus('Environmental issue', 'FAILURE') | ||
} | ||
} | ||
} | ||
stage('Prepare Kibana') { | ||
|
@@ -85,7 +58,7 @@ pipeline { | |
steps { | ||
notifyStatus('Preparing kibana', 'PENDING') | ||
dir("${BASE_DIR}"){ | ||
sh script: "${CYPRESS_DIR}/ci/prepare-kibana.sh" | ||
sh "${E2E_DIR}/ci/prepare-kibana.sh" | ||
} | ||
} | ||
post { | ||
|
@@ -103,46 +76,46 @@ pipeline { | |
} | ||
} | ||
steps{ | ||
notifyStatus('Running smoke tests', 'PENDING') | ||
notifyTestStatus('Running smoke tests', 'PENDING') | ||
dir("${BASE_DIR}"){ | ||
sh ''' | ||
jobs -l | ||
docker build --tag cypress --build-arg NODE_VERSION=$(cat .node-version) ${CYPRESS_DIR}/ci | ||
docker run --rm -t --user "$(id -u):$(id -g)" \ | ||
-v `pwd`:/app --network="host" \ | ||
--name cypress cypress''' | ||
sh "${E2E_DIR}/ci/run-e2e.sh" | ||
} | ||
} | ||
post { | ||
always { | ||
dir("${BASE_DIR}"){ | ||
archiveArtifacts(allowEmptyArchive: false, artifacts: "${CYPRESS_DIR}/**/screenshots/**,${CYPRESS_DIR}/**/videos/**,${CYPRESS_DIR}/**/test-results/*e2e-tests.xml") | ||
junit(allowEmptyResults: true, testResults: "${CYPRESS_DIR}/**/test-results/*e2e-tests.xml") | ||
} | ||
dir("${APM_ITS}"){ | ||
sh 'docker-compose logs > apm-its.log || true' | ||
sh 'docker-compose down -v || true' | ||
archiveArtifacts(allowEmptyArchive: false, artifacts: 'apm-its.log') | ||
dir("${BASE_DIR}/${E2E_DIR}"){ | ||
archiveArtifacts(allowEmptyArchive: false, artifacts: 'cypress/screenshots/**,cypress/videos/**,cypress/test-results/*e2e-tests.xml') | ||
junit(allowEmptyResults: true, testResults: 'cypress/test-results/*e2e-tests.xml') | ||
dir('tmp/apm-integration-testing'){ | ||
sh 'docker-compose logs > apm-its-docker.log || true' | ||
sh 'docker-compose down -v || true' | ||
archiveArtifacts(allowEmptyArchive: true, artifacts: 'apm-its-docker.log') | ||
} | ||
archiveArtifacts(allowEmptyArchive: true, artifacts: 'tmp/*.log') | ||
} | ||
} | ||
unsuccessful { | ||
notifyStatus('Test failures', 'FAILURE') | ||
notifyTestStatus('Test failures', 'FAILURE') | ||
} | ||
success { | ||
notifyStatus('Tests passed', 'SUCCESS') | ||
notifyTestStatus('Tests passed', 'SUCCESS') | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
dir("${BASE_DIR}"){ | ||
archiveArtifacts(allowEmptyArchive: true, artifacts: "${CYPRESS_DIR}/ingest-data.log,kibana.log") | ||
archiveArtifacts(allowEmptyArchive: true, artifacts: "${E2E_DIR}/kibana.log") | ||
} | ||
} | ||
} | ||
} | ||
|
||
def notifyStatus(String description, String status) { | ||
withGithubNotify.notify('end2end-for-apm-ui', description, status, getBlueoceanDisplayURL()) | ||
withGithubNotify.notify('end2end-for-apm-ui', description, status, getBlueoceanTabURL('pipeline')) | ||
} | ||
|
||
def notifyTestStatus(String description, String status) { | ||
withGithubNotify.notify('end2end-for-apm-ui', description, status, getBlueoceanTabURL('tests')) | ||
} |
Oops, something went wrong.