---
# verification jobs for 'voltha-openonu-adapter' repo
# NOTE this component is deprecated, should we keep running the tests?

- project:
    name: voltha-openonu-adapter
    project: '{name}'

    jobs:
      - 'verify-voltha-openonu-adapter-jobs':
          branch-regexp: '{all-branches-regexp}'
      - 'verify-voltha-openonu-adapter-jobs-voltha-2.7':
          name-extension: '-voltha-2.7'
          override-branch: 'voltha-2.7'
          branch-regexp: '{kind-voltha-regexp}'
      - 'verify-voltha-openonu-adapter-jobs-master':
          branch-regexp: '^master$'
      - 'publish-voltha-openonu-adapter-jobs':
          branch-regexp: '{all-branches-regexp}'

- job-group:
    name: 'verify-voltha-openonu-adapter-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_voltha-openonu-adapter_licensed'
      - 'make-unit-test':
          unit-test-targets: 'test'
          unit-test-keep-going: 'true'
          junit-allow-empty-results: true
          build-timeout: 15
      - 'make-sca':
          unit-test-targets: 'sca'
          unit-test-keep-going: 'true'
          junit-allow-empty-results: true
          build-timeout: 15

- job-group:
    name: 'verify-voltha-openonu-adapter-jobs-voltha-2.7'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/voltha-2.7/bbsim-tests.groovy'

- job-group:
    name: 'verify-voltha-openonu-adapter-jobs-master'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/master/bbsim-tests.groovy'
          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master'

- job-group:
    name: 'publish-voltha-openonu-adapter-jobs'
    jobs:
      - 'docker-publish':
          build-timeout: 30
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag'
