osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/38318?usp=email )
Change subject: jobs/simtester-sanitize: new job ......................................................................
jobs/simtester-sanitize: new job
Reset SIM cards every night, and when the job gets triggered manually.
Depends: pysim I42eaf61280968518164f2280245136fd30a603ce Change-Id: Ie1846b031224a2a9604c22e7d81016c08e217bbc --- M jobs/README.md A jobs/simtester-sanitize.yml 2 files changed, 41 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/18/38318/1
diff --git a/jobs/README.md b/jobs/README.md index 7c81af5..56b5dfd 100644 --- a/jobs/README.md +++ b/jobs/README.md @@ -167,6 +167,7 @@ 00:XX registry-update-base-images 01:XX osmocom-build-tags-against-master 01:XX osmocom-list-commits + 01:XX simtester-sanitize 02:XX registry-triggers 02:XX registry-rebuild-upload-fpga-build (weekly)
diff --git a/jobs/simtester-sanitize.yml b/jobs/simtester-sanitize.yml new file mode 100644 index 0000000..7cb7f26 --- /dev/null +++ b/jobs/simtester-sanitize.yml @@ -0,0 +1,40 @@ +- job: + name: "simtester-sanitize" + project-type: freestyle + defaults: global + node: simtester + description: | + Reset the SIM cards in simtester to a defined state. + builders: + - shell: | + virtualenv -p python3 venv --system-site-packages + . venv/bin/activate + pip install -r requirements.txt + pip install pyshark + tests/card_sanitizer/card_sanitizer.py + properties: + - build-discarder: + days-to-keep: 30 + num-to-keep: 30 + parameters: + - string: + name: BRANCH + description: pysim.git branch + default: 'origin/master' + - string: + name: EMAIL_NOTIFICATIONS + description: For failed build notifications, set to empty to disable + default: 'jenkins-notifications@lists.osmocom.org' + scm: + - git: + url: https://gerrit.osmocom.org/pysim + git-config-name: 'Jenkins Builder' + git-config-email: 'jenkins@osmocom.org' + branches: + - '$BRANCH' + triggers: + - timed: "H 01 * * *" + publishers: + - email: + recipients: '$EMAIL_NOTIFICATIONS' + notify-every-unstable-build: true