Separating MOSK Deployment Stages
Related_prod: PROD-37294
Change-Id: I5581d7c6920605f778ac4f4cd4ac0d235bc65990
diff --git a/jobs/templates/bm-mcc-mosk-base.yml b/jobs/templates/bm-mcc-mosk-base.yml
index ad6b8eb..90b8980 100644
--- a/jobs/templates/bm-mcc-mosk-base.yml
+++ b/jobs/templates/bm-mcc-mosk-base.yml
@@ -49,6 +49,10 @@
Add env vars for deploy and testing
name: EXTRA_VARS
trim: 'false'
+ - bool:
+ default: true
+ description: Run tempest after deploy
+ name: RUN_TESTS_AFTER_DEPLOY
pipeline-scm:
lightweight-checkout: false
scm:
diff --git a/jobs/templates/mosk-archive-artifacts.yml b/jobs/templates/mosk-archive-artifacts.yml
new file mode 100644
index 0000000..c9ea60c
--- /dev/null
+++ b/jobs/templates/mosk-archive-artifacts.yml
@@ -0,0 +1,51 @@
+- job-template:
+ project-type: pipeline
+ description: '{job-description}'
+ concurrent: true
+ disabled: false
+ name: mosk-archive-artifacts
+ parameters:
+ - string:
+ default: "sre-team-infra"
+ description: ''
+ name: NODE_LABEL
+ trim: 'false'
+ - string:
+ name: SEED_EXT_IP
+ description: ''
+ trim: 'false'
+ default: '172.16.180.2'
+ - string:
+ default: bm-mcc-mosk
+ description: ''
+ 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'
+ - text:
+ default: ''
+ description: |-
+ Add env vars for deploy and testing
+ name: EXTRA_VARS
+ trim: 'false'
+ - bool:
+ default: false
+ description: Delete tempest pod
+ name: DELETE_TEMPEST_POD
+ 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
+ script-path: jobs/pipelines/mosk/mosk-archive-artifacts.groovy
+ logrotate:
+ daysToKeep: 365
diff --git a/jobs/templates/mosk-tempest.yml b/jobs/templates/mosk-tempest.yml
new file mode 100644
index 0000000..5c2d762
--- /dev/null
+++ b/jobs/templates/mosk-tempest.yml
@@ -0,0 +1,46 @@
+- job-template:
+ project-type: pipeline
+ description: '{job-description}'
+ concurrent: true
+ disabled: false
+ name: mosk-tempest
+ parameters:
+ - string:
+ default: "sre-team-infra"
+ description: ''
+ name: NODE_LABEL
+ trim: 'false'
+ - string:
+ name: SEED_EXT_IP
+ description: ''
+ trim: 'false'
+ default: '172.16.180.2'
+ - string:
+ default: bm-mcc-mosk
+ description: ''
+ 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'
+ - text:
+ default: ''
+ description: |-
+ Add env vars for deploy and testing
+ name: EXTRA_VARS
+ 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
+ script-path: jobs/pipelines/mosk/mosk-tempest.groovy
+ logrotate:
+ daysToKeep: 365