mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[CI] GitHub check details link to test reports and errorlevel (#69157)
This commit is contained in:
parent
7e328417ab
commit
88eed9819c
2 changed files with 15 additions and 4 deletions
|
@ -76,7 +76,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps{
|
||||
notifyStatus('Running smoke tests', 'PENDING')
|
||||
notifyTestStatus('Running smoke tests', 'PENDING')
|
||||
dir("${BASE_DIR}"){
|
||||
sh "${E2E_DIR}/ci/run-e2e.sh"
|
||||
}
|
||||
|
@ -95,10 +95,10 @@ pipeline {
|
|||
}
|
||||
}
|
||||
unsuccessful {
|
||||
notifyStatus('Test failures', 'FAILURE')
|
||||
notifyTestStatus('Test failures', 'FAILURE')
|
||||
}
|
||||
success {
|
||||
notifyStatus('Tests passed', 'SUCCESS')
|
||||
notifyTestStatus('Tests passed', 'SUCCESS')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -113,5 +113,9 @@ pipeline {
|
|||
}
|
||||
|
||||
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'))
|
||||
}
|
||||
|
|
|
@ -164,6 +164,7 @@ echo "✅ Setup completed successfully. Running tests..."
|
|||
# run cypress tests
|
||||
##################################################
|
||||
yarn cypress run --config pageLoadTimeout=100000,watchForFileChanges=true
|
||||
e2e_status=$?
|
||||
|
||||
#
|
||||
# Run interactively
|
||||
|
@ -171,3 +172,9 @@ yarn cypress run --config pageLoadTimeout=100000,watchForFileChanges=true
|
|||
echo "${bold}If you want to run the test interactively, run:${normal}"
|
||||
echo "" # newline
|
||||
echo "cd ${E2E_DIR} && yarn cypress open --config pageLoadTimeout=100000,watchForFileChanges=true"
|
||||
|
||||
# Report the e2e status at the very end
|
||||
if [ $e2e_status -ne 0 ]; then
|
||||
echo "⚠️ Running tests failed."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue