#################################### # job configuration for bottlenecks #################################### - project: name: bottlenecks-ci-jobs project: 'bottlenecks' #-------------------------------- # BRANCH ANCHORS #-------------------------------- master: &master stream: master branch: '{stream}' #This is used for common project file storage gs-pathname: '' #This is used for different test suite dependent packages storage gs-packagepath: '/{suite}' #docker tag used for version control docker-tag: 'latest' danube: &danube stream: danube branch: 'stable/{stream}' gs-pathname: '/{stream}' gs-packagepath: '/{stream}/{suite}' docker-tag: 'stable' #-------------------------------- # POD, INSTALLER, AND BRANCH MAPPING #-------------------------------- # Installers using labels # CI PODs # This section should only contain the installers # that have been switched using labels for slaves #-------------------------------- pod: #compass CI PODs - baremetal: slave-label: compass-baremetal installer: compass auto-trigger-name: 'daily-trigger-disabled' <<: *master - virtual: slave-label: compass-virtual installer: compass auto-trigger-name: 'daily-trigger-disabled' <<: *master - baremetal: slave-label: compass-baremetal installer: compass auto-trigger-name: 'daily-trigger-disabled' <<: *danube - virtual: slave-label: compass-virtual installer: compass auto-trigger-name: 'daily-trigger-disabled' <<: *danube #-------------------------------- # None-CI PODs #-------------------------------- # - orange-pod2: # slave-label: '{pod}' # installer: joid # auto-trigger-name: 'daily-trigger-disabled' # <<: *danube # - orange-pod2: # slave-label: '{pod}' # installer: joid # auto-trigger-name: 'daily-trigger-disabled' # <<: *master #-------------------------------------------- suite: - 'rubbos' - 'vstf' - 'posca_stress_traffic' - 'posca_stress_ping' jobs: - 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}' ################################ # job templates ################################ - job-template: name: 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}' wrappers: - build-name: name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO' - timeout: timeout: 180 abort: true triggers: - '{auto-trigger-name}' parameters: - project-parameter: project: '{project}' branch: '{branch}' - '{slave-label}-defaults' - '{installer}-defaults' - 'bottlenecks-params-{slave-label}' - string: name: REPO_DIR default: "/home/opnfv/bottlenecks" description: "Directory where the repository is cloned" - string: name: DEPLOY_SCENARIO default: 'os-odl_l2-nofeature-ha' - string: name: GERRIT_REFSPEC_DEBUG default: 'true' description: "Gerrit refspec for debug." - string: name: SUITE_NAME default: '{suite}' description: "test suite name." - string: name: DOCKER_TAG default: '{docker-tag}' description: "docker image tag used for version control" scm: - git-scm builders: - 'bottlenecks-env-cleanup' - 'bottlenecks-run-suite' publishers: - email: recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com sunshine.wang@huawei.com ######################## # builder macros ######################## - builder: name: bottlenecks-env-cleanup builders: - shell: !include-raw: ./bottlenecks-cleanup.sh - builder: name: bottlenecks-run-suite builders: - shell: !include-raw: ./bottlenecks-run-suite.sh #################### # parameter macros #################### - parameter: name: 'bottlenecks-params-compass-baremetal' parameters: - string: name: BOTTLENECKS_DB_TARGET default: '104.197.68.199:8086' description: 'Arguments to use in order to choose the backend DB' - parameter: name: 'bottlenecks-params-compass-virtual' parameters: - string: name: BOTTLENECKS_DB_TARGET default: '' description: 'Arguments to use in order to choose the backend DB' - parameter: name: 'bottlenecks-params-orange-pod2' parameters: - string: name: BOTTLENECKS_DB_TARGET default: '104.197.68.199:8086' description: 'Arguments to use in order to choose the backend DB'