Pavel Glazov | d7f47c0 | 2022-10-12 14:46:42 +0400 | [diff] [blame] | 1 | - job-template:
|
| 2 | project-type: pipeline
|
| 3 | description: '{job-description}'
|
| 4 | concurrent: true
|
| 5 | disabled: false
|
| 6 | name: swarm-testrail-report-jjb
|
| 7 | parameters:
|
| 8 | - string:
|
| 9 | name: ENV_NAME
|
| 10 | default:
|
| 11 | description: 'Required: Fuel-devops environment name'
|
| 12 | trim: 'false'
|
| 13 | - string:
|
| 14 | name: PASSED_STEPS
|
| 15 | default: ''
|
| 16 | description: |-
|
| 17 | Completed steps to install components on the environment.<br>
|
| 18 | If tests require some additional components,
|
| 19 | it may be installed in appropriate fixtures,<br>
|
| 20 | so set the PASSED_STEPS correctly for the testing environment.
|
| 21 | trim: 'false'
|
| 22 | - string:
|
| 23 | name: PARENT_NODE_NAME
|
| 24 | default: ''
|
| 25 | description: |-
|
| 26 | Required: Name of the jenkins slave to create the environment<br>
|
| 27 | To be set by the parent deployment job.
|
| 28 | trim: 'false'
|
| 29 | - string:
|
| 30 | name: PARENT_WORKSPACE
|
| 31 | default: ''
|
| 32 | description: |-
|
| 33 | Required: Workspace on the jenkins slave to reuse for the job<br>
|
| 34 | To be set by the parent deployment job.
|
| 35 | trim: 'false'
|
| 36 | - string:
|
| 37 | name: MCP_VERSION
|
| 38 | default: 'proposed'
|
| 39 | description: ''
|
| 40 | trim: 'false'
|
| 41 | - string:
|
| 42 | name: TCP_QA_REFS
|
| 43 | default: ''
|
| 44 | description: |-
|
| 45 | Example: refs/changes/89/411189/36 (for now - only one reference allowed)
|
| 46 | trim: 'false'
|
| 47 | - string:
|
| 48 | name: TEMPEST_TEST_SUITE_NAME
|
| 49 | default: '[MCP1.1_PIKE]Tempest'
|
| 50 | description: ''
|
| 51 | trim: 'false'
|
| 52 | - string:
|
| 53 | name: LAB_CONFIG_NAME
|
| 54 | default: ''
|
| 55 | description: ''
|
| 56 | trim: 'false'
|
| 57 | - string:
|
| 58 | name: TEST_PLAN_NAME_PREFIX
|
| 59 | default: ''
|
| 60 | description: |-
|
| 61 | Prefix for creating Test Plan name in TestRail
|
| 62 | trim: 'false'
|
| 63 | - string:
|
| 64 | name: TEST_PLAN_NAME
|
| 65 | default: ''
|
| 66 | description: ''
|
| 67 | trim: 'false'
|
| 68 | - string:
|
| 69 | name: REPORT_FILE_URL
|
| 70 | default: ''
|
| 71 | description: |-
|
| 72 | Url to download the xml file with xUnit report
|
| 73 | trim: 'false'
|
| 74 | - choice:
|
| 75 | name: REPORT_FILE_NAME
|
| 76 | choices:
|
| 77 | -
|
| 78 | - nosetests.xml
|
| 79 | - report_tempest.xml
|
| 80 | - stacklight_report.xml
|
| 81 | - cvp_sanity_results.xml
|
| 82 | description: |-
|
| 83 | Choose a type of downloading xml file <br>
|
| 84 | <br>nosetests.xml - file for tcp-qa reports <br>
|
| 85 | report_tempest.xml - for tempest report <br>
|
| 86 | stacklight_report.xml - for LMA stacklight report <br>
|
| 87 | cvp_sanity_results.xml - for CVP Sanity report<br>
|
| 88 | <br>
|
| 89 | # [not_supported] deployment_${{ENV_NAME}}.xml - file for deployment report
|
| 90 | pipeline-scm:
|
| 91 | lightweight-checkout: false
|
| 92 | scm:
|
| 93 | - git:
|
| 94 | branches:
|
| 95 | - FETCH_HEAD
|
| 96 | refspec: ${{TCP_QA_REFS}}
|
| 97 | url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
|
| 98 | script-path: jobs/pipelines/swarm-testrail-report.groovy
|
| 99 | logrotate:
|
| 100 | daysToKeep: 30 |