aboutsummaryrefslogtreecommitdiffstats
path: root/jobs/osmocom-obs.yml
blob: 25e48c350c71752904480f111e1f350b2db78e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
- project:
    name: Osmocom_OBS
    jobs:
      - Osmocom_OBS_{type}_{server}
    type:
      - master:
          conflict_version: ""
      - nightly:
          # For nightly we don't provide ABI compatibility, make sure packages
          # from different build dates are not mixed by accident
          conflict_version: "$(date +%Y%m%d%H%M)"
      - latest:
          conflict_version: ""
    server:
      - obs.osmocom.org:
          proj: "osmocom"

- job-template:
    name: 'Osmocom_OBS_{type}_{server}'
    project-type: freestyle
    concurrent: false
    defaults: global
    description: |
      See <a href="https://osmocom.org/projects/cellular-infrastructure/wiki/Binary_Packages">Wiki: binary packages</a>
      for more information.
    node: obs
    parameters:
      - string:
          name: BRANCH
          description: osmo-ci.git branch
          default: 'refs/remotes/origin/master'
    builders:
      - shell: |
          export PYTHONUNBUFFERED=1

          ./scripts/obs/update_obs_project.py \
            --apiurl {server} \
            --conflict-version {conflict_version} \
            --docker \
            --feed {type} \
            --meta \
            {proj}:{type}
    scm:
      - git:
          branches:
            - '$BRANCH'
          url: https://gerrit.osmocom.org/osmo-ci
          git-config-name: 'Jenkins Builder'
          git-config-email: 'jenkins@osmocom.org'
    triggers:
      - timed: "H 00 * * *" # run before repo-install-test.yml

    publishers:
      - email:
          notify-every-unstable-build: true
          recipients: 'jenkins-notifications@lists.osmocom.org'

# vim: expandtab tabstop=2 shiftwidth=2