---
- project:
    name: Osmocom-repo-install
    jobs:
      - Osmocom-repo-install-{distro}
    distro:
      - debian10:
          feeds: !!python/tuple [nightly, latest]
      - debian11:
          feeds: !!python/tuple [nightly, latest]
      - debian12:
          feeds: !!python/tuple [nightly, latest]
- job-template:
    name: Osmocom-repo-install-{distro}
    project-type: matrix
    defaults: global
    description: |
        Install {distro} packages from the
          
            Osmocom binary packages repositories, test if binaries and systemd services can be started.
        
        Related:
        
          -  OS#3176: install all Osmocom debian packages
          
-  OS#3369: check if systemd services start properly
          
-  OS#4563: extend for centos
          
-  OS#5365: run in qemu
        
properties:
      - build-discarder:
          days-to-keep: 30
          num-to-keep: 30
    parameters:
      - string:
          name: BRANCH_CI
          description: |
                osmo-ci.git branch
          default: 'master'
      - string:
          name: EMAIL_NOTIFICATIONS
          description: For failed build notifications, set to empty to disable
          default: 'jenkins-notifications@lists.osmocom.org'
    axes:
      - axis:
          type: slave
          name: label
          values: !!python/tuple [qemu]
      - axis:
          type: user-defined
          name: feed
          values: '{obj:feeds}'
    builders:
      - shell: |
          export FEED="$feed"
          scripts/repo-install-test.sh "{distro}"
    scm:
      - git:
          branches:
            - '$BRANCH_CI'
          url: https://gerrit.osmocom.org/osmo-ci
          git-config-name: 'Jenkins Builder'
          git-config-email: 'jenkins@osmocom.org'
    triggers:
      - timed: "H 06 * * *"
    publishers:
      - email:
          notify-every-unstable-build: true
          recipients: '$EMAIL_NOTIFICATIONS'
# vim: expandtab tabstop=2 shiftwidth=2