Skip to content

Commit

Permalink
ci: configure retries on tests (elastic#20891)
Browse files Browse the repository at this point in the history
* feat: configure retries on tests

* Update Jenkinsfile

Co-authored-by: cachedout <[email protected]>

* Update Jenkinsfile

Co-authored-by: cachedout <[email protected]>
  • Loading branch information
2 people authored and melchiormoulin committed Oct 14, 2020
1 parent 2d4d4fe commit 28a51fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pipeline {
JOB_GCS_CREDENTIALS = 'beats-ci-gcs-plugin'
XPACK_MODULE_PATTERN = '^x-pack\\/[a-z0-9]+beat\\/module\\/([^\\/]+)\\/.*'
OSS_MODULE_PATTERN = '^[a-z0-9]+beat\\/module\\/([^\\/]+)\\/.*'
PYTEST_ADDOPTS = "${params.PYTEST_ADDOPTS}"
}
options {
timeout(time: 2, unit: 'HOURS')
Expand All @@ -61,6 +62,7 @@ pipeline {
string(name: 'awsRegion', defaultValue: 'eu-central-1', description: 'Default AWS region to use for testing.')
booleanParam(name: 'debug', defaultValue: false, description: 'Allow debug logging for Jenkins steps')
booleanParam(name: 'dry_run', defaultValue: false, description: 'Skip build steps, it is for testing pipeline flow')
string(name: 'PYTEST_ADDOPTS', defaultValue: '', description: 'Additional options to pass to pytest. Use PYTEST_ADDOPTS="-k pattern" to only run tests matching the specified pattern. For retries you can use `--reruns 3 --reruns-delay 15`')
}
stages {
/**
Expand Down
1 change: 1 addition & 0 deletions libbeat/tests/system/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pyparsing==2.4.7
pyrsistent==0.16.0
pytest==6.0.1
pytest-timeout==1.3.4
pytest-rerunfailures==9.0
PyYAML==5.3.1
redis==2.10.6
requests==2.20.0
Expand Down

0 comments on commit 28a51fa

Please sign in to comment.