Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | job: |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 5 | deploy-stack-cleanup: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 6 | type: workflow-scm |
| 7 | concurrent: true |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 8 | display_name: "Deploy - stack cleanup" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 9 | discard: |
| 10 | build: |
Jakub Josef | 1a82896 | 2018-01-23 12:33:34 +0100 | [diff] [blame] | 11 | keep_num: 50 |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 12 | scm: |
| 13 | type: git |
| 14 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 15 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 16 | credentials: "gerrit" |
| 17 | script: cleanup-pipeline.groovy |
| 18 | param: |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 19 | # general parameters |
| 20 | STACK_NAME: |
| 21 | type: string |
| 22 | description: This stack will be deleted. |
| 23 | STACK_TYPE: |
| 24 | type: choice |
| 25 | choices: |
| 26 | - heat |
| 27 | - aws |
| 28 | default: 'heat' |
| 29 | |
| 30 | # heat parameters |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 31 | OPENSTACK_API_URL: |
| 32 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 33 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 34 | OPENSTACK_API_CREDENTIALS: |
| 35 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 36 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 37 | OPENSTACK_API_PROJECT: |
| 38 | type: string |
Jakub Josef | 093b422 | 2018-02-22 14:35:04 +0100 | [diff] [blame] | 39 | default: "mcp-mk" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 40 | OPENSTACK_API_CLIENT: |
| 41 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 42 | default: "" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 43 | OPENSTACK_API_VERSION: |
| 44 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 45 | default: "3" |
Matthew Mosesohn | 480aa32 | 2017-06-01 18:46:12 +0300 | [diff] [blame] | 46 | OPENSTACK_API_PROJECT_DOMAIN: |
kairat_kushaev | 12b8d1f | 2017-05-18 17:49:33 +0400 | [diff] [blame] | 47 | type: string |
| 48 | default: "default" |
Matthew Mosesohn | 480aa32 | 2017-06-01 18:46:12 +0300 | [diff] [blame] | 49 | OPENSTACK_API_PROJECT_ID: |
| 50 | type: string |
| 51 | default: "" |
| 52 | OPENSTACK_API_USER_DOMAIN: |
| 53 | type: string |
| 54 | default: "default" |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 55 | |
| 56 | # aws parameters |
| 57 | AWS_API_CREDENTIALS: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 58 | type: string |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 59 | default: "aws-credentials" |
| 60 | AWS_DEFAULT_REGION: |
| 61 | type: string |
Tomáš Kukrál | 8c44f59 | 2017-12-06 13:35:05 +0100 | [diff] [blame] | 62 | default: "eu-central-1" |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 63 | |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 64 | delete-failed-stacks: |
| 65 | type: workflow-scm |
| 66 | concurrent: true |
| 67 | display_name: "Deploy - delete failed stacks" |
| 68 | discard: |
| 69 | build: |
| 70 | keep_num: 20 |
| 71 | scm: |
| 72 | type: git |
| 73 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 74 | branch: "${_param:jenkins_pipelines_branch}" |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 75 | credentials: "gerrit" |
| 76 | script: delete-broken-stacks-pipeline.groovy |
| 77 | trigger: |
| 78 | timer: |
Jakub Josef | a753c68 | 2017-09-05 15:26:09 +0200 | [diff] [blame] | 79 | spec: "0 0 * * *" |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 80 | param: |
| 81 | # openstack api |
| 82 | OPENSTACK_API_URL: |
| 83 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 84 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 85 | OPENSTACK_API_CREDENTIALS: |
| 86 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 87 | default: "openstack-devcloud-credentials" |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 88 | OPENSTACK_API_PROJECT: |
| 89 | type: string |
Jakub Josef | 093b422 | 2018-02-22 14:35:04 +0100 | [diff] [blame] | 90 | default: "mcp-k8s, mcp-maintenance, mcp-mk, mcp-networking, mcp-opencontrail, mcp-oss, mcp-platform, mcp-scale, mcp-stacklight, mcp-support" |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 91 | OPENSTACK_API_CLIENT: |
| 92 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 93 | default: "" |
Jakub Josef | 556c7b3 | 2017-04-19 17:21:54 +0200 | [diff] [blame] | 94 | OPENSTACK_API_VERSION: |
| 95 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 96 | default: "3" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 97 | OPENSTACK_API_PROJECT_DOMAIN: |
kairat_kushaev | 12b8d1f | 2017-05-18 17:49:33 +0400 | [diff] [blame] | 98 | type: string |
| 99 | default: "default" |
| 100 | OPENSTACK_API_USER_DOMAIN_ID: |
| 101 | type: string |
| 102 | default: "default" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 103 | OPENSTACK_API_PROJECT_ID: |
| 104 | type: string |
| 105 | default: "" |
| 106 | OPENSTACK_API_USER_DOMAIN: |
| 107 | type: string |
| 108 | default: "default" |