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 branch 'master' into alerting/consumer-based-rbac
* master: (82 commits) Fixed the spacing of child accordion items for policy response dialog. (elastic#71677) [SECURITY] Timeline bug 7.9 (elastic#71748) use fixed isChromeVisible method (elastic#71813) [SIEM][Detection Engine][Lists] Adds specific endpoint_list REST API and API for abilities to auto-create the endpoint_list if it gets deleted (elastic#71792) [test] Skips flaky Saved Objects Management test [APM] Remove watcher integration (elastic#71655) [APM] Increase `xpack.apm.ui.transactionGroupBucketSize` (elastic#71661) [test] Skips Ingest Manager test preventing ES promotion [test] Skips flaky detection engine tests Revert "re-fix navigate path for master add SAML login to login_page (elastic#71337)" [tests] Temporarily skipped Fleet tests [test] Skipped monitoring test [Security Solution][Detections] Associate Endpoint Exceptions List to Rule during rule creation/update (elastic#71794) Add endpoint exception creation API validation (elastic#71791) Skip jest tests that timeout waiting for react (elastic#71801) [Security Solution][Exceptions] - Adds filtering to endpoint index patterns by exceptional fields (elastic#71757) [Reporting] Re-delete a file (elastic#71730) [Security Solution] [Detections] Fixes bug for determining when we hit max signals after filtering with lists (elastic#71768) [Ingest Manager] Better display of Fleet requirements (elastic#71686) [tests] Temporarily skipped to promote snapshot ...
- Loading branch information
Showing
1,327 changed files
with
35,566 additions
and
17,875 deletions.
There are no files selected for viewing
File renamed without changes.
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,64 @@ | ||
#!/bin/groovy | ||
|
||
def MAXIMUM_COMMITS_TO_CHECK = 10 | ||
def MAXIMUM_COMMITS_TO_BUILD = 5 | ||
|
||
if (!params.branches_yaml) { | ||
error "'branches_yaml' parameter must be specified" | ||
} | ||
|
||
def additionalBranches = [] | ||
|
||
def branches = readYaml(text: params.branches_yaml) + additionalBranches | ||
|
||
library 'kibana-pipeline-library' | ||
kibanaLibrary.load() | ||
|
||
withGithubCredentials { | ||
branches.each { branch -> | ||
stage(branch) { | ||
def commits = getCommits(branch, MAXIMUM_COMMITS_TO_CHECK, MAXIMUM_COMMITS_TO_BUILD) | ||
|
||
commits.take(MAXIMUM_COMMITS_TO_BUILD).each { commit -> | ||
catchErrors { | ||
githubCommitStatus.create(commit, 'pending', 'Baseline started.', 'kibana-ci-baseline') | ||
|
||
build( | ||
propagate: false, | ||
wait: false, | ||
job: 'elastic+kibana+baseline-capture', | ||
parameters: [ | ||
string(name: 'branch_specifier', value: branch), | ||
string(name: 'commit', value: commit), | ||
] | ||
) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
def getCommits(String branch, maximumCommitsToCheck, maximumCommitsToBuild) { | ||
print "Getting latest commits for ${branch}..." | ||
def commits = githubApi.get("repos/elastic/kibana/commits?sha=${branch}").take(maximumCommitsToCheck).collect { it.sha } | ||
def commitsToBuild = [] | ||
|
||
for (commit in commits) { | ||
print "Getting statuses for ${commit}" | ||
def status = githubApi.get("repos/elastic/kibana/statuses/${commit}").find { it.context == 'kibana-ci-baseline' } | ||
print "Commit '${commit}' already built? ${status ? 'Yes' : 'No'}" | ||
|
||
if (!status) { | ||
commitsToBuild << commit | ||
} else { | ||
// Stop at the first commit we find that's already been triggered | ||
break | ||
} | ||
|
||
if (commitsToBuild.size() >= maximumCommitsToBuild) { | ||
break | ||
} | ||
} | ||
|
||
return commitsToBuild.reverse() // We want the builds to trigger oldest-to-newest | ||
} |
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
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
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
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
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 |
---|---|---|
|
@@ -57,7 +57,7 @@ Import an index pattern and dashboard: | |
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form [email protected] | ||
$ curl -X POST api/saved_objects/_import -H "kbn-xsrf: true" --form [email protected] | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
@@ -83,7 +83,7 @@ Import an index pattern and dashboard that includes a conflict on the index patt | |
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form [email protected] | ||
$ curl -X POST api/saved_objects/_import -H "kbn-xsrf: true" --form [email protected] | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
@@ -119,7 +119,7 @@ Import a visualization and dashboard with an index pattern for the visualization | |
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form [email protected] | ||
$ curl -X POST api/saved_objects/_import -H "kbn-xsrf: true" --form [email protected] | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
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 |
---|---|---|
|
@@ -63,7 +63,7 @@ Retry a dashboard import: | |
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST "localhost:5601/api/saved_objects/_resolve_import_errors" -H "kbn-xsrf: true" --form [email protected] --form retries='[{"type":"dashboard","id":"my-dashboard"}]' | ||
$ curl -X POST api/saved_objects/_resolve_import_errors -H "kbn-xsrf: true" --form [email protected] --form retries='[{"type":"dashboard","id":"my-dashboard"}]' | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
@@ -88,7 +88,7 @@ Resolve errors for a dashboard and overwrite the existing saved object: | |
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST "localhost:5601/api/saved_objects/_resolve_import_errors" -H "kbn-xsrf: true" --form [email protected] --form retries='[{"type":"dashboard","id":"my-dashboard","overwrite":true}]' | ||
$ curl -X POST api/saved_objects/_resolve_import_errors -H "kbn-xsrf: true" --form [email protected] --form retries='[{"type":"dashboard","id":"my-dashboard","overwrite":true}]' | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
@@ -114,7 +114,7 @@ Resolve errors for a visualization by replacing the index pattern with another: | |
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST "localhost:5601/api/saved_objects/_resolve_import_errors" -H "kbn-xsrf: true" --form [email protected] --form retries='[{"type":"visualization","id":"my-vis","replaceReferences":[{"type":"index-pattern","from":"missing","to":"existing"}]}]' | ||
$ curl -X POST api/saved_objects/_resolve_import_errors -H "kbn-xsrf: true" --form [email protected] --form retries='[{"type":"visualization","id":"my-vis","replaceReferences":[{"type":"index-pattern","from":"missing","to":"existing"}]}]' | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
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
Oops, something went wrong.