[MERGED] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod, rnd}
Harald Welte has submitted this change and it was merged. Change subject: jenkins: add osmo-gsm-tester_run-{prod,rnd} .. jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- A jobs/osmo-gsm-tester-runner.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 146 insertions(+), 0 deletions(-) Approvals: Pau Espin Pedrol: Looks good to me, but someone else must approve Neels Hofmeyr: Looks good to me, approved Harald Welte: Verified diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml new file mode 100644 index 000..5221b9a --- /dev/null +++ b/jobs/osmo-gsm-tester-runner.yml @@ -0,0 +1,118 @@ +## run jobs +- project: +name: osmo-gsm-testers-runner +stage: + - prod + - rnd +jobs: + - 'osmo-gsm-tester_run-{stage}' + +# The repo must be used seperate to workaround the bug "Can not expand OSMO_GSM_TESTER_BRANCH". +# The safe-guard check to not use un-defined variables seems to be broken. +- scm: +name: osmo-gsm-tester-repo +scm: + - git: + url: git://git.osmocom.org/osmo-gsm-tester + branches: +- ${OSMO_GSM_TESTER_BRANCH} + wipe-workspace: false + skip-tag: true + basedir: osmo-gsm-tester + +- builder: +name: copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artifact in one place +- builder: +name: copy_artifact_all +builders: + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runner +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runner +node: 'osmo-gsm-tester-{stage}' +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - copy_artifact_all + - shell: !include-raw: osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false + - junit: + results: 'trial-*/last_run/trial-*.xml' + allow-empty-results: true + - email: + recipients: 'pes...@sysmocom.de' + notify-every-unstable-build: true +scm: + - 'osmo-gsm-tester-repo' diff --git a/jobs/osmo-gsm-tester_run-prod.sh b/jobs/osmo-gsm-tester_run-prod.sh new file mode 100644 index 000..bcfe8ed --- /dev/null +++ b/jobs/osmo-gsm-tester_run-prod.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e -x + +# On our hardware,
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 7: Verified+1 -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 7 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 6: Code-Review+2 reconsidering, these are the shell instructions for the "Build step" config, and I think after all they're abstracted enough that we could have two separate ones. There's also the possibility of configuring env vars for the jenkins job, which would I think be slightly nicer. But leaving it up to you now. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 6 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 6: I've looked further into. I don't want to add jjb variables in the shell script. This will break shell scripts quite easy. e.g. if you try to use ${FOO} in a shell script, it will treat it a {FOO} variable. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 6 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 6: Code-Review-1 agree with pau -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 6 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 6: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 6 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 6: Can we unify the sh script instead of having 2 of them with only 1 line changing? -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 6 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
[PATCH] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Hello Pau Espin Pedrol, Neels Hofmeyr, Harald Welte, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/7021 to look at the new patch set (#6). jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- A jobs/osmo-gsm-tester-runner.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 146 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/7021/6 diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml new file mode 100644 index 000..5221b9a --- /dev/null +++ b/jobs/osmo-gsm-tester-runner.yml @@ -0,0 +1,118 @@ +## run jobs +- project: +name: osmo-gsm-testers-runner +stage: + - prod + - rnd +jobs: + - 'osmo-gsm-tester_run-{stage}' + +# The repo must be used seperate to workaround the bug "Can not expand OSMO_GSM_TESTER_BRANCH". +# The safe-guard check to not use un-defined variables seems to be broken. +- scm: +name: osmo-gsm-tester-repo +scm: + - git: + url: git://git.osmocom.org/osmo-gsm-tester + branches: +- ${OSMO_GSM_TESTER_BRANCH} + wipe-workspace: false + skip-tag: true + basedir: osmo-gsm-tester + +- builder: +name: copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artifact in one place +- builder: +name: copy_artifact_all +builders: + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runner +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runner +node: 'osmo-gsm-tester-{stage}' +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - copy_artifact_all + - shell: !include-raw: osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false + - junit: + results: 'trial-*/last_run/trial-*.xml' + allow-empty-results: true + - email: + recipients: 'pes...@sysmocom.de' + notify-every-unstable-build: true +scm: + - 'osmo-gsm-tester-repo' diff --git a/jobs/osmo-gsm-tester_run-prod.sh b/jobs/osmo-gsm-tester_run-prod.sh new file mode 100644 index 000..bcfe8ed --- /dev/null +++ b/jobs/osmo-gsm-tester_run-prod.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e -x + +# On our hardware, we actually use the example configuration as-is. +export
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 5: Code-Review-1 Waiting for this patch to be updated to fullfill new resources.conf changes. See my last comment in this patch regarding this topic. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 5 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 5: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 5 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 5: Please have a look at this osmo-gsm-tester commit, which moved osmo-gsm-tester.git example/resource.conf to example/resource.conf.{prod,rnd}. So you can drop all "sed" commands and do: ln -s resources.conf.prod example/resources.conf -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 5 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
[PATCH] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Hello Pau Espin Pedrol, Neels Hofmeyr, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/7021 to look at the new patch set (#5). jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- A jobs/osmo-gsm-tester-runner.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 150 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/7021/5 diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml new file mode 100644 index 000..97fd482 --- /dev/null +++ b/jobs/osmo-gsm-tester-runner.yml @@ -0,0 +1,118 @@ +## run jobs +- project: +name: osmo-gsm-testers-runner +stage: + - prod + - rnd +jobs: + - 'osmo-gsm-tester_run-{stage}' + +# The repo must be used seperate to workaround the bug "Can not expand OSMO_GSM_TESTER_BRANCH". +# The safe-guard check to not use un-defined variables seems to be broken. +- scm: +name: osmo-gsm-tester-repo +scm: + - git: + url: git://git.osmocom.org/osmo-gsm-tester + branches: +- ${OSMO_GSM_TESTER_BRANCH} + wipe-workspace: false + skip-tag: true + basedir: osmo-gsm-tester + +- builder: +name: osmo_gsm_copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artifact in one place +- builder: +name: osmo_gsm_copy_artifact_all +builders: + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runner +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runner +node: 'osmo-gsm-tester-{stage}' +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - osmo_gsm_copy_artifact_all + - shell: !include-raw: osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false + - junit: + results: 'trial-*/last_run/trial-*.xml' + allow-empty-results: true + - email: + recipients: 'pes...@sysmocom.de' + notify-every-unstable-build: true +scm: + - 'osmo-gsm-tester-repo' diff --git a/jobs/osmo-gsm-tester_run-prod.sh b/jobs/osmo-gsm-tester_run-prod.sh new file mode 100644 index 000..0764096 --- /dev/null +++ b/jobs/osmo-gsm-tester_run-prod.sh @@ -0,0 +1,21 @@
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 4: (1 comment) https://gerrit.osmocom.org/#/c/7021/4/jobs/osmo-gsm-tester.yml File jobs/osmo-gsm-tester.yml: Line 137: repo: osmo-gsm-tester_build-osmo-bsc > it's used here. This is a macro using another macro. ok I understand. Interesting to see that one can use macros, didn't know about those before. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 4 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: Yes
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 4: (2 comments) https://gerrit.osmocom.org/#/c/7021/4/jobs/osmo-gsm-tester.yml File jobs/osmo-gsm-tester.yml: Line 127: project: '{repo}' > where is the {repo} coming from? IIUC the '- project:' section responsible this is a macro. repo must be given, when calling this macro. we could move this into an own file Line 137: repo: osmo-gsm-tester_build-osmo-bsc it's used here. This is a macro using another macro. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 4 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: Yes
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 4: Code-Review-1 (2 comments) https://gerrit.osmocom.org/#/c/7021/4/jobs/osmo-gsm-tester.yml File jobs/osmo-gsm-tester.yml: Line 127: project: '{repo}' where is the {repo} coming from? IIUC the '- project:' section responsible for these jobs doesn't define repos. Is it somehow re-using the repo definition from above? If not, I'd also prefer this in its own file. Actually I prefer it in its own file in any case. Line 132: # all artifact in one place ("artifacts") -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 4 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Neels Hofmeyr Gerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: Yes
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 4: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 4 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
[PATCH] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Hello Pau Espin Pedrol, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/7021 to look at the new patch set (#4). jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- M jobs/osmo-gsm-tester.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 138 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/7021/4 diff --git a/jobs/osmo-gsm-tester.yml b/jobs/osmo-gsm-tester.yml index e10dc23..7d6d7f9 100644 --- a/jobs/osmo-gsm-tester.yml +++ b/jobs/osmo-gsm-tester.yml @@ -1,6 +1,5 @@ --- #TODO: -# - run # - gerrit # - manual-run # @@ -111,3 +110,109 @@ # hopefully the trigger will support lists in the future - trigger: project: 'osmo-gsm-tester_build-osmo-bsc,osmo-gsm-tester_build-osmo-bts,osmo-gsm-tester_build-osmo-ggsn,osmo-gsm-tester_build-osmo-hlr,osmo-gsm-tester_build-osmo-mgw,osmo-gsm-tester_build-osmo-msc,osmo-gsm-tester_build-osmo-pcu,osmo-gsm-tester_build-osmo-sgsn,osmo-gsm-tester_build-osmo-trx,osmo-gsm-tester_build-osmo-nitb,osmo-gsm-tester_build-osmo-stp,osmo-gsm-tester_build-osmo-bts-sysmo,osmo-gsm-tester_build-osmo-pcu-sysmo' + +## run jobs +- project: +name: osmo-gsm-testers-runner +stage: + - prod + - rnd +jobs: + - 'osmo-gsm-tester_run-{stage}' + +- builder: +name: osmo_gsm_copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artifact in one place +- builder: +name: osmo_gsm_copy_artifact_all +builders: + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runner +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runner +node: 'osmo-gsm-tester-{stage}' +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - osmo_gsm_copy_artifact_all + - shell: !include-raw osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false + - junit: + results: 'trial-*/last_run/trial-*.xml' + allow-empty-results: true + - email: + recipients: 'pes...@sysmocom.de' + notify-every-unstable-build: true +scm: + - 'osmo-gsm-tester-repo' diff --git a/jobs/osmo-gsm-tester_run-prod.sh b/jobs/osmo-gsm-tester_run-prod.sh new file
[PATCH] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Hello Pau Espin Pedrol, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/7021 to look at the new patch set (#3). jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- M jobs/osmo-gsm-tester.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 138 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/7021/3 diff --git a/jobs/osmo-gsm-tester.yml b/jobs/osmo-gsm-tester.yml index e10dc23..42c2f83 100644 --- a/jobs/osmo-gsm-tester.yml +++ b/jobs/osmo-gsm-tester.yml @@ -1,6 +1,5 @@ --- #TODO: -# - run # - gerrit # - manual-run # @@ -111,3 +110,109 @@ # hopefully the trigger will support lists in the future - trigger: project: 'osmo-gsm-tester_build-osmo-bsc,osmo-gsm-tester_build-osmo-bts,osmo-gsm-tester_build-osmo-ggsn,osmo-gsm-tester_build-osmo-hlr,osmo-gsm-tester_build-osmo-mgw,osmo-gsm-tester_build-osmo-msc,osmo-gsm-tester_build-osmo-pcu,osmo-gsm-tester_build-osmo-sgsn,osmo-gsm-tester_build-osmo-trx,osmo-gsm-tester_build-osmo-nitb,osmo-gsm-tester_build-osmo-stp,osmo-gsm-tester_build-osmo-bts-sysmo,osmo-gsm-tester_build-osmo-pcu-sysmo' + +## run jobs +- project: +name: osmo-gsm-testers-runner +stage: + - prod + - rnd: + node: 'osmo-gsm-tester-rnd' +jobs: + - 'osmo-gsm-tester_run-{stage}' + +- builder: +name: osmo_gsm_copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artifact in one place +- builder: +name: osmo_gsm_copy_artifact_all +builders: + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runner +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runner +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - osmo_gsm_copy_artifact_all + - shell: !include-raw osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false + - junit: + results: 'trial-*/last_run/trial-*.xml' + allow-empty-results: true + - email: + recipients: 'pes...@sysmocom.de' + notify-every-unstable-build: true +scm: + - 'osmo-gsm-tester-repo' diff --git a/jobs/osmo-gsm-tester_run-prod.sh b/jobs/osmo-gsm-tester_run-prod.sh new
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 2: Code-Review-1 (1 comment) https://gerrit.osmocom.org/#/c/7021/2/jobs/osmo-gsm-tester.yml File jobs/osmo-gsm-tester.yml: Line 105: name: osmo-gsm-tester-repo-clean As discussed, I think we can drop this one completely. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 2 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: Yes
[PATCH] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- M jobs/osmo-gsm-tester.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 150 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/7021/2 diff --git a/jobs/osmo-gsm-tester.yml b/jobs/osmo-gsm-tester.yml index 034e137..41a7ec1 100644 --- a/jobs/osmo-gsm-tester.yml +++ b/jobs/osmo-gsm-tester.yml @@ -1,6 +1,5 @@ --- #TODO: -# - run # - trigger # - gerrit # - manual-run @@ -102,6 +101,18 @@ skip-tag: true basedir: osmo-gsm-tester +- scm: +name: osmo-gsm-tester-repo-clean +scm: + - git: + url: git://git.osmocom.org/osmo-gsm-tester + branches: +- ${OSMO_GSM_TESTER_BRANCH} + wipe-workspace: false + skip-tag: true + basedir: osmo-gsm-tester + clean: true + ## trigger build job - job: name: 'osmo-gsm-tester_build-trigger-all' @@ -112,3 +123,109 @@ # hopefully the trigger will support lists in the future - trigger: project: 'osmo-gsm-tester_build-osmo-bsc,osmo-gsm-tester_build-osmo-bts,osmo-gsm-tester_build-osmo-ggsn,osmo-gsm-tester_build-osmo-hlr,osmo-gsm-tester_build-osmo-mgw,osmo-gsm-tester_build-osmo-msc,osmo-gsm-tester_build-osmo-pcu,osmo-gsm-tester_build-osmo-sgsn,osmo-gsm-tester_build-osmo-trx,osmo-gsm-tester_build-osmo-nitb,osmo-gsm-tester_build-osmo-stp,osmo-gsm-tester_build-osmo-bts-sysmo,osmo-gsm-tester_build-osmo-pcu-sysmo' + +## run jobs +- project: +name: osmo-gsm-testers-runner +stage: + - prod + - rnd: + node: 'osmo-gsm-tester-rnd' +jobs: + - 'osmo-gsm-tester_run-{stage}' + +- builder: +name: osmo_gsm_copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artifact in one place +- builder: +name: osmo_gsm_copy_artifact_all +builders: + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runner +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runner +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - osmo_gsm_copy_artifact_all + - shell: !include-raw osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false +
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 1: (5 comments) https://gerrit.osmocom.org/#/c/7021/1/jobs/osmo-gsm-tester.yml File jobs/osmo-gsm-tester.yml: Line 119: clean: true Not sure if we really require another scm (the difference with the other one is clean true/false right?). Do you see any reason to keep 2 of them with this difference? Line 134: name: osmo-gsm-testers-runners Same thing, this plural stuff looks confusing to me. Line 140: - 'osmo-gsm-tester_run-{stage}' And inconsistent, because here you use "stage" and not "stages". Line 151: # all artefact in one place typo -> artifact Line 228: only-if-success: 'true' We want to always have artifacts, to be able to download and investigate output when tests fail. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: Pau Espin Pedrol Gerrit-Reviewer: lynxis lazus Gerrit-HasComments: Yes
osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Patch Set 1: Both jobs hasn't been yet deployed on the jenkins. -- To view, visit https://gerrit.osmocom.org/7021 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Owner: lynxis lazusGerrit-Reviewer: lynxis lazus Gerrit-HasComments: No
[PATCH] osmo-ci[master]: jenkins: add osmo-gsm-tester_run-{prod,rnd}
Review at https://gerrit.osmocom.org/7021 jenkins: add osmo-gsm-tester_run-{prod,rnd} Both jobs doing the actual test run on the prod or rnd tester. Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0 --- M jobs/osmo-gsm-tester.yml A jobs/osmo-gsm-tester_run-prod.sh A jobs/osmo-gsm-tester_run-rnd.sh 3 files changed, 151 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/7021/1 diff --git a/jobs/osmo-gsm-tester.yml b/jobs/osmo-gsm-tester.yml index f25299d..0380f13 100644 --- a/jobs/osmo-gsm-tester.yml +++ b/jobs/osmo-gsm-tester.yml @@ -1,6 +1,5 @@ --- #TODO: -# - run # - trigger # - gerrit # - manual-run @@ -107,6 +106,18 @@ skip-tag: true basedir: osmo-gsm-tester +- scm: +name: osmo-gsm-tester-repo-clean +scm: + - git: + url: git://git.osmocom.org/osmo-gsm-tester + branches: +- ${OSMO_GSM_TESTER_BRANCH} + wipe-workspace: false + skip-tag: true + basedir: osmo-gsm-tester + clean: true + ## trigger build job - job: name: 'osmo-gsm-tester_build-trigger-all' @@ -117,3 +128,110 @@ # hopefully the trigger will support lists in the future - trigger: project: 'osmo-gsm-tester_build-osmo-bsc,osmo-gsm-tester_build-osmo-bts,osmo-gsm-tester_build-osmo-ggsn,osmo-gsm-tester_build-osmo-hlr,osmo-gsm-tester_build-osmo-mgw,osmo-gsm-tester_build-osmo-msc,osmo-gsm-tester_build-osmo-pcu,osmo-gsm-tester_build-osmo-sgsn,osmo-gsm-tester_build-osmo-trx,osmo-gsm-tester_build-osmo-nitb,osmo-gsm-tester_build-osmo-stp,osmo-gsm-tester_build-osmo-bts-sysmo,osmo-gsm-tester_build-osmo-pcu-sysmo' + +## run jobs +- project: +name: osmo-gsm-testers-runners +stage: + - prod + - rnd: + node: 'osmo-gsm-tester-rnd' +jobs: + - 'osmo-gsm-tester_run-{stage}' + +- builder: +name: osmo_gsm_copy_artifact +builders: + - copyartifact: + project: '{repo}' + filter: '*.tgz, *.md5' + which-build: last-successful + stable: true + +# all artefact in one place +- builder: +name: osmo_gsm_copy_artifact_all +builders: + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bsc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-ggsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-hlr + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-mgw + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-msc + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-sgsn + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-trx + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-nitb + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-stp + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-bts-sysmo + - osmo_gsm_copy_artifact: + repo: osmo-gsm-tester_build-osmo-pcu-sysmo + +- defaults: +name: runners +description: 'Run an actual GSM hardware test using the binaries from the osmo-gsm-tester_build* jobs' +node: 'osmo-gsm-tester-prod' +project-type: freestyle +properties: + - build-discarder: + num-to-keep: 60 +parameters: + - string: + name: "OSMO_GSM_TESTER_BRANCH" + default: "origin/master" + description: "Which branch/sha should be used for testing" + - string: + name: "OSMO_GSM_TESTER_OPTS" + default: "" + description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty." + +- job-template: +name: 'osmo-gsm-tester_run-{stage}' +defaults: runners +triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + - reverse: +jobs: +- osmo-gsm-tester_build-osmo-bsc +- osmo-gsm-tester_build-osmo-bts +- osmo-gsm-tester_build-osmo-ggsn +- osmo-gsm-tester_build-osmo-hlr +- osmo-gsm-tester_build-osmo-mgw +- osmo-gsm-tester_build-osmo-msc +- osmo-gsm-tester_build-osmo-pcu +- osmo-gsm-tester_build-osmo-sgsn +- osmo-gsm-tester_build-osmo-trx +- osmo-gsm-tester_build-osmo-nitb +- osmo-gsm-tester_build-osmo-stp +- osmo-gsm-tester_build-osmo-bts-sysmo +- osmo-gsm-tester_build-osmo-pcu-sysmo +builders: + - osmo_gsm_copy_artifact_all + - shell: !include-raw osmo-gsm-tester_run-{stage}.sh +publishers: + - archive: + artifacts: '*-run.tgz,