mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Security Solution][Endpoint] Change where agent diagnostic files saved on test failures for cypress suites (#220272)
## Summary - Changes the location of any captured Elastic agent diagnostics files during a cypress tests failure to `target/agent_diagnostics` from `target/test_failures`
This commit is contained in:
parent
208d7b5d38
commit
ae5a93811b
2 changed files with 5 additions and 1 deletions
|
@ -54,6 +54,10 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
|
|||
ts-node .buildkite/scripts/lifecycle/annotate_test_failures.ts
|
||||
fi
|
||||
|
||||
if [[ -d 'target/agent_diagnostics' ]]; then
|
||||
buildkite-agent artifact upload 'target/agent_diagnostics/**/*'
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]]; then
|
||||
|
|
|
@ -577,7 +577,7 @@ ${s1Info.status}
|
|||
.toISOString()
|
||||
.replace(/:/g, '.')}.zip`;
|
||||
const vmDiagnosticsFile = `/tmp/${fileName}`;
|
||||
const localDiagnosticsDir = `${REPO_ROOT}/target/test_failures`;
|
||||
const localDiagnosticsDir = `${REPO_ROOT}/target/agent_diagnostics`;
|
||||
const localDiagnosticsFile = `${localDiagnosticsDir}/${
|
||||
fileNamePrefix
|
||||
? // Insure the file name prefix does not have characters that can't be used in file names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue