-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 discover-popovers
- Loading branch information
Showing
121 changed files
with
2,803 additions
and
590 deletions.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/groovy | ||
|
||
library 'kibana-pipeline-library' | ||
kibanaLibrary.load() | ||
|
||
kibanaPipeline(timeoutMinutes: 180) { | ||
slackNotifications.onFailure( | ||
disabled: !params.NOTIFY_ON_FAILURE, | ||
channel: '#security-solution-slack-testing' | ||
) { | ||
catchError { | ||
workers.base(size: 's', ramDisk: false) { | ||
kibanaPipeline.bash('test/scripts/jenkins_security_solution_cypress.sh', 'Execute Security Solution Cypress Tests') | ||
} | ||
} | ||
} | ||
|
||
if (params.NOTIFY_ON_FAILURE) { | ||
kibanaPipeline.sendMail(to: '[email protected]') | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/* eslint-env jest */ | ||
|
||
/** | ||
* Set the default timeout for the unit tests to 30 seconds, temporarily | ||
*/ | ||
jest.setTimeout(30 * 1000); |
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 |
---|---|---|
|
@@ -170,7 +170,6 @@ def uploadCoverageArtifacts(prefix, pattern) { | |
def withGcsArtifactUpload(workerName, closure) { | ||
def uploadPrefix = "kibana-ci-artifacts/jobs/${env.JOB_NAME}/${BUILD_NUMBER}/${workerName}" | ||
def ARTIFACT_PATTERNS = [ | ||
'**/target/public/.kbn-optimizer-cache', | ||
'target/kibana-*', | ||
'target/test-metrics/*', | ||
'target/kibana-security-solution/**/*.png', | ||
|
@@ -221,7 +220,7 @@ def publishJunit() { | |
} | ||
} | ||
|
||
def sendMail() { | ||
def sendMail(Map params = [:]) { | ||
// If the build doesn't have a result set by this point, there haven't been any errors and it can be marked as a success | ||
// The e-mail plugin for the infra e-mail depends upon this being set | ||
currentBuild.result = currentBuild.result ?: 'SUCCESS' | ||
|
@@ -230,7 +229,7 @@ def sendMail() { | |
if (buildStatus != 'SUCCESS' && buildStatus != 'ABORTED') { | ||
node('flyweight') { | ||
sendInfraMail() | ||
sendKibanaMail() | ||
sendKibanaMail(params) | ||
} | ||
} | ||
} | ||
|
@@ -246,12 +245,14 @@ def sendInfraMail() { | |
} | ||
} | ||
|
||
def sendKibanaMail() { | ||
def sendKibanaMail(Map params = [:]) { | ||
def config = [to: '[email protected]'] + params | ||
|
||
catchErrors { | ||
def buildStatus = buildUtils.getBuildStatus() | ||
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED') { | ||
emailext( | ||
to: '[email protected]', | ||
config.to, | ||
subject: "${env.JOB_NAME} - Build # ${env.BUILD_NUMBER} - ${buildStatus}", | ||
body: '${SCRIPT,template="groovy-html.template"}', | ||
mimeType: 'text/html', | ||
|
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 |
---|---|---|
|
@@ -269,6 +269,7 @@ describe('execute()', () => { | |
"message": "a message to you", | ||
"subject": "the subject", | ||
}, | ||
"proxySettings": undefined, | ||
"routing": Object { | ||
"bcc": Array [ | ||
"[email protected]", | ||
|
@@ -326,6 +327,7 @@ describe('execute()', () => { | |
"message": "a message to you", | ||
"subject": "the subject", | ||
}, | ||
"proxySettings": undefined, | ||
"routing": Object { | ||
"bcc": Array [ | ||
"[email protected]", | ||
|
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
Oops, something went wrong.