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 'alerting/consumer-based-rbac' into alerting/management-…
…feature-privileges * alerting/consumer-based-rbac: (491 commits) [Lens] Handle failing existence check (elastic#70718) [Security Solution]Fix in-app links and popup window text (elastic#71403) [esArchiver] automatically retry if alias creation fails (elastic#71910) Move data stream index pattern creation test to xpack (elastic#71511) [Maps] Improve language for mvt card (elastic#71947) [Security][Detections] Unskip failing modal tests (elastic#71969) skip flaky suite (elastic#71987) skip flaky suite (elastic#71979) [Security Solution] [Detections] Revert "[Security Solution] [Detections] Fixes bug for determining when we hit max signals after filtering with lists (elastic#71768)" (elastic#71956) rename ilm policy to remove -default (elastic#71952) Adjust ordering of Management category apps to make Ingest Manager higher (elastic#71948) skip flaky suite (elastic#71971) skip flaky suite (elastic#71951) [kbn/optimizer] ignore compressed files when reporting stats (elastic#71940) skip flaky suite (elastic#71867) [ML] Fix new job with must_not saved search (elastic#71831) [Resolver] Fix bug where process detail panel doesn't show up (elastic#71754) Cleanup (elastic#71849) [Resolver] aria-level and aria-flowto support enhancements (elastic#71887) skip flaky suite (elastic#71304) ...
- Loading branch information
Showing
6,067 changed files
with
234,597 additions
and
91,523 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
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,26 @@ | ||
#!/bin/groovy | ||
|
||
library 'kibana-pipeline-library' | ||
kibanaLibrary.load() | ||
|
||
kibanaPipeline(timeoutMinutes: 120) { | ||
ciStats.trackBuild { | ||
catchError { | ||
parallel([ | ||
'oss-visualRegression': { | ||
workers.ci(name: 'oss-visualRegression', size: 's', ramDisk: false) { | ||
kibanaPipeline.functionalTestProcess('oss-visualRegression', './test/scripts/jenkins_visual_regression.sh')(1) | ||
} | ||
}, | ||
'xpack-visualRegression': { | ||
workers.ci(name: 'xpack-visualRegression', size: 's', ramDisk: false) { | ||
kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh')(1) | ||
} | ||
}, | ||
]) | ||
} | ||
|
||
kibanaPipeline.sendMail() | ||
slackNotifications.onFailure() | ||
} | ||
} |
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 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
Oops, something went wrong.