---
# verification jobs for 'ofagent-go' repo

- project:
    name: ofagent-go
    project: '{name}'

    jobs:
      - 'verify-ofagent-go-jobs':
          branch-regexp: '{all-branches-regexp}'
      - 'publish-ofagent-go-jobs':
          branch-regexp: '{all-branches-regexp}'

- job-group:
    name: 'verify-ofagent-go-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_ofagent-go_licensed'
      - 'make-unit-test':
          build-node: 'ubuntu16.04-basebuild-1c-2g'
          dest-gopath: "github.com/opencord"
          unit-test-targets: 'lint sca test'
          unit-test-keep-going: 'true'
          junit-allow-empty-results: true
      - 'voltha-patch-test':
          pipeline-script: 'voltha-bbsim-tests.groovy'

- job-group:
    name: 'publish-ofagent-go-jobs'
    jobs:
      - 'docker-publish':
          build-timeout: 30
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag'
          extraEnvironmentVars: BUILD_PROFILED=true
