---
# verification jobs for 'voltha-system-tests' repo

- project:
    name: voltha-system-tests
    project: '{name}'

    jobs:
      - 'verify-voltha-system-tests-jobs':
          build-node: 'ubuntu18.04-basebuild-4c-8g'
          branch-regexp: '{all-branches-regexp}'
      - 'verify-voltha-system-tests-jobs-voltha-2.7':
          build-node:  'ubuntu18.04-basebuild-4c-8g'
          name-extension: '-voltha-2.7'
          override-branch: 'voltha-2.7'
          branch-regexp: '{kind-voltha-regexp}'
      - 'verify-voltha-system-tests-jobs-master':
          build-node:  'ubuntu18.04-basebuild-4c-8g'
          branch-regexp: '^master$'

- job-group:
    name: 'verify-voltha-system-tests-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_voltha-system-tests_licensed'
      - 'make-unit-test':
          dependency-jobs: 'verify_voltha-system-tests_tag-collision'
          unit-test-targets: 'lint'
          junit-allow-empty-results: true

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

- job-group:
    name: 'verify-voltha-system-tests-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'
