Add swarm-run-pytest job to JJB
Remove obsolete parameters
PROD-35295
Change-Id: I976d72b8968d4f25f36946ba88d80c836762e597
diff --git a/jobs/templates/swarm-run-pytest.yml b/jobs/templates/swarm-run-pytest.yml
new file mode 100644
index 0000000..eced52e
--- /dev/null
+++ b/jobs/templates/swarm-run-pytest.yml
@@ -0,0 +1,73 @@
+- job-template:
+ project-type: pipeline
+ description: '{job-description}'
+ concurrent: true
+ disabled: false
+ name: swarm-run-pytest
+ parameters:
+ - string:
+ default: ''
+ description: 'Required: Fuel-devops environment name'
+ name: ENV_NAME
+ trim: 'false'
+ - string:
+ default: ''
+ description: 'Example: refs/changes/89/411189/36
+ (for now - only one reference allowed)'
+ name: TCP_QA_REFS
+ trim: 'false'
+ - string:
+ default: ''
+ description: 'Required: Name of the jenkins slave to create the environment
+ To be set by the parent deployment job.'
+ name: PARENT_NODE_NAME
+ trim: 'false'
+ - string:
+ default: ''
+ description: 'Completed steps to install components on the environment.
+ If tests require some additional components, it may be installed in
+ appropriate fixtures, so set the PASSED_STEPS correctly for the
+ testing environment.'
+ name: PASSED_STEPS
+ trim: 'false'
+ - string:
+ default: ''
+ description: 'Required: Workspace on the jenkins slave to reuse for the job
+ To be set by the parent deployment job.'
+ name: PARENT_WORKSPACE
+ trim: 'false'
+ - bool:
+ default: false
+ description: 'Shutdown the fuel-devops environment at the end of the job'
+ name: SHUTDOWN_ENV_ON_TEARDOWN
+ trim: 'false'
+ - bool:
+ default: false
+ description: 'Use "dos.py snapshot" to snapshot stages of deploy if ENV_MANAGER is devops'
+ name: MAKE_SNAPSHOT_STAGES
+ - text:
+ default: ''
+ description: |-
+ Pytest option -k or -m, with expression to select necessary tests.
+ Additional pytest options are allowed.
+ name: RUN_TEST_OPTS
+ trim: 'false'
+ - string:
+ default: pike
+ description: ''
+ name: TEMPEST_IMAGE_VERSION
+ trim: 'false'
+ - string:
+ default: ''
+ description: ''
+ name: TEMPEST_TARGET
+ trim: 'false'
+ pipeline-scm:
+ lightweight-checkout: false
+ scm:
+ - git:
+ branches:
+ - FETCH_HEAD
+ refspec: ${{TCP_QA_REFS}}
+ url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
+ script-path: jobs/pipelines/swarm-run-pytest.groovy