---
# verification jobs for 'bbsim' repo

- project:
    name: bbsim
    project: '{name}'

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

- job-group:
    name: 'verify-bbsim-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_bbsim_licensed'
      - 'make-unit-test':
          build-node: 'ubuntu18.04-basebuild-4c-8g'
          dest-gopath: "github.com/opencord"
          unit-test-targets: 'lint sca test'
          unit-test-keep-going: 'true'

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

- job-group:
    name: 'verify-bbsim-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-bbsim-jobs'
    jobs:
      - 'docker-publish':
          maintainers: "teo@opennetworking.org"
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag'
      - 'github-release':
           dependency-jobs: 'version-tag'
           github-organization: 'opencord'
           release-targets: 'release'
           artifact-glob: 'release/*'
