---
# 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-master':
          build-node: 'ubuntu18.04-basebuild-4c-8g'
          branch-regexp: '^master$'
      - 'verify-voltha-system-tests-jobs-voltha-2.12':
          build-node: 'ubuntu18.04-basebuild-4c-8g'
          name-extension: '-voltha-2.12'
          override-branch: 'voltha-2.12'
          branch-regexp: '^voltha-2.12$'
      - 'verify-voltha-system-tests-jobs-voltha-2.11':
          build-node: 'ubuntu18.04-basebuild-4c-8g'
          name-extension: '-voltha-2.11'
          override-branch: 'voltha-2.11'
          branch-regexp: '^voltha-2.11$'
#      - 'verify-voltha-system-tests-jobs-voltha-2.8':
#          build-node: 'ubuntu18.04-basebuild-4c-8g'
#          name-extension: '-voltha-2.8'
#          override-branch: 'voltha-2.8'
#          branch-regexp: '^voltha-2.8$'

- 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.12'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/bbsim-tests.groovy'
          pipeline-branch: 'voltha-2.12'

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

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

- job-group:
    name: 'verify-voltha-system-tests-jobs-master'
    jobs:
      - 'voltha-patch-test':
          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master'

# [EOF]
