---
# workflow validations job

- project:
    name: att-workflow-validations

    project-name: '{name}'

    jobs:
      - 'wf-validation'

- job-template:
    id: 'wf-validation'
    name: 'att-workflow-xos-data-model-scale-test'

    description: |
      <!-- Managed by Jenkins Job Builder -->
      Created by {id} job-template from ci-management/jjb/workflow-validations.yaml  <br /><br />
      Tests run nightly for validation of particular workflows. Kafka events simulated and XOS model states validated

    properties:
      - cord-infra-properties:
          build-days-to-keep: '{build-days-to-keep}'
          artifact-num-to-keep: '{artifact-num-to-keep}'

    wrappers:
      - lf-infra-wrappers:
          build-timeout: '{build-timeout}'
          jenkins-ssh-credential: '{jenkins-ssh-credential}'

    parameters:
      - string:
         name: executorNode
         default: 'ubuntu16.04-basebuild-4c-8g'
         description: 'Name of the Jenkins node to run the job on'

      - string:
         name: manifestUrl
         default: '{gerrit-server-url}/{cord-repo-manifest}'
         description: 'URL to the repo manifest'

      - string:
         name: manifestBranch
         default: 'master'
         description: 'Name of the repo branch to use'

      - string:
         name: Olts
         default: '10'
         description: 'Number of OLTs to create'

      - string:
         name: Onus
         default: '1'
         description: 'Number of ONUs to create'

      - string:
         name: PonPorts
         default: '10'
         description: 'Number of Pon Ports'

    project-type: pipeline
    concurrent: false

    dsl: !include-raw-escape: pipeline/workflow-validations.groovy

    triggers:
       - timed: |
                 TZ=America/Los_Angeles
                 H 0,12 * * *
