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