mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[jenkins] Notify GH Checks for the apm-ui e2e pipeline (#52900)
This commit is contained in:
parent
3c51fb0314
commit
446fda62f2
2 changed files with 28 additions and 2 deletions
|
@ -25,7 +25,7 @@ pipeline {
|
|||
durabilityHint('PERFORMANCE_OPTIMIZED')
|
||||
}
|
||||
triggers {
|
||||
issueCommentTrigger('(?i).*jenkins\\W+run\\W+(?:the\\W+)?e2e(?:\\W+please)?.*')
|
||||
issueCommentTrigger('(?i)(retest|.*jenkins\\W+run\\W+(?:the\\W+)?e2e?.*)')
|
||||
}
|
||||
parameters {
|
||||
booleanParam(name: 'FORCE', defaultValue: false, description: 'Whether to force the run.')
|
||||
|
@ -60,8 +60,14 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps {
|
||||
notifyStatus('Starting services', 'PENDING')
|
||||
dir("${APM_ITS}"){
|
||||
sh './scripts/compose.py start master --no-kibana --no-xpack-secure'
|
||||
sh './scripts/compose.py start master --no-kibana'
|
||||
}
|
||||
}
|
||||
post {
|
||||
unsuccessful {
|
||||
notifyStatus('Environmental issue', 'FAILURE')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,10 +83,16 @@ pipeline {
|
|||
JENKINS_NODE_COOKIE = 'dontKillMe'
|
||||
}
|
||||
steps {
|
||||
notifyStatus('Preparing kibana', 'PENDING')
|
||||
dir("${BASE_DIR}"){
|
||||
sh script: "${CYPRESS_DIR}/ci/prepare-kibana.sh"
|
||||
}
|
||||
}
|
||||
post {
|
||||
unsuccessful {
|
||||
notifyStatus('Kibana warm up failed', 'FAILURE')
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Smoke Tests'){
|
||||
options { skipDefaultCheckout() }
|
||||
|
@ -91,6 +103,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps{
|
||||
notifyStatus('Running smoke tests', 'PENDING')
|
||||
dir("${BASE_DIR}"){
|
||||
sh '''
|
||||
jobs -l
|
||||
|
@ -112,6 +125,12 @@ pipeline {
|
|||
archiveArtifacts(allowEmptyArchive: false, artifacts: 'apm-its.log')
|
||||
}
|
||||
}
|
||||
unsuccessful {
|
||||
notifyStatus('Test failures', 'FAILURE')
|
||||
}
|
||||
success {
|
||||
notifyStatus('Tests passed', 'SUCCESS')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -123,3 +142,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
def notifyStatus(String description, String status) {
|
||||
withGithubNotify.notify('end2end-for-apm-ui', description, status, getBlueoceanDisplayURL())
|
||||
}
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
# Disabled plugins
|
||||
########################
|
||||
logging.verbose: true
|
||||
elasticsearch.username: "kibana_system_user"
|
||||
elasticsearch.password: "changeme"
|
||||
xpack.security.encryptionKey: "something_at_least_32_characters"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue