From 5d1b5833b5f1404b8ea66528d16f1567853f0631 Mon Sep 17 00:00:00 2001 From: wianvos Date: Fri, 22 Jul 2016 08:36:24 -0400 Subject: [PATCH] cleaning up code --- src/main/resources/test2.json | 106 ----------------------------- src/main/resources/test3.json | 78 --------------------- src/main/resources/test3_mock.json | 83 ---------------------- src/main/resources/test_steps.json | 50 -------------- 4 files changed, 317 deletions(-) delete mode 100644 src/main/resources/test2.json delete mode 100644 src/main/resources/test3.json delete mode 100644 src/main/resources/test3_mock.json delete mode 100644 src/main/resources/test_steps.json diff --git a/src/main/resources/test2.json b/src/main/resources/test2.json deleted file mode 100644 index 7c5cb17..0000000 --- a/src/main/resources/test2.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "settings": { - "appName": [ - "app1", - "app2", - "app3", - "app4" - ], - "environment": [ - "dev", - "test", - "qa", - "ete", - "prod" - ], - "portfolio": "safeco", - "release": "2016_01", - "specific_settings": { - "environment": { - "ete": { - "release": "${portfolio}" - } - }, - "appName": { - "app1": { - "portfolio": "claims2" - }, - "app2": { - "release": "2016_08" - } - } - } - }, - "template_plan": { - "phases": [ - { - "title": "build for $", - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease", - "parent_task_type": "xlrelease.CustomScriptTask" - }, - "title": "$ Build", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_BUILD", - "releaseTitle": "Build $", - "releaseDescription": "Build $", - "variables": "appName=$", - "asynch": "false" - } - ] - }, - { - "title": "deploy for $ to $ ", - "meta": { - "repeat_on": "environment" - }, - "containers": [ - { - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease", - "parent_task_type": "xlrelease.CustomScriptTask" - }, - "title": "$ deploy", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_DEPLOY", - "releaseTitle": "Deploy $ to $", - "releaseDescription": "Deploy $ to $", - "variables": "appName=$,portfolio=$,release=$" - } - ] - }, - { - "meta": { - "type": "xlrelease.SequentialGroup", - "max_tasks": "3" - }, - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease", - "parent_task_type": "xlrelease.CustomScriptTask" - }, - "title": "$ deploy", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_DEPLOY", - "releaseTitle": "Deploy $ to $", - "releaseDescription": "Deploy $ to $", - "variables": "appName=$,portfolio=$,release=$" - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/src/main/resources/test3.json b/src/main/resources/test3.json deleted file mode 100644 index 84d47ce..0000000 --- a/src/main/resources/test3.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "settings": { - "appName": [ - "app1", - "app2", - "app3", - "app4" - ], - "environment": [ - "dev", - "test", - "qa", - "ete", - "prod" - ], - "portfolio": "safeco", - "release": "2016_01", - "specific_settings": { - "appName" : { - "app1": { - "portfolio": "claims2" - }, - "app2": { - "release": "2016_08" - } - } - } - }, - "template_plan": { - "phases": [ - { - "title": "build for ${appName}", - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease" - }, - "Title": "${appName} Build", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_BUILD", - "releaseTitle": "Build ${appName}", - "releaseDescription": "Build ${appName}", - "variables": "appName=${appName}", - "asynch": "false" - } - ] - }, - { - "title": "deploy for ${environment}", - "meta": { - "repeat_on": "environment" - }, - "containers": [ - { - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease" - }, - "meta:parent_task_type": "xlrelease.CustomScriptTask", - "Title": "${appName} Build", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_DEPLOY", - "releaseTitle": "Deploy ${appName} to ${environment}", - "releaseDescription": "Deploy ${appName} to ${environment}", - "variables": "appName" - } - ] - } - ] - } - ] - } -} diff --git a/src/main/resources/test3_mock.json b/src/main/resources/test3_mock.json deleted file mode 100644 index 60074fc..0000000 --- a/src/main/resources/test3_mock.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "settings": { - "appName": [ - "app1", - "app2", - "app3", - "app4" - ], - "environment": [ - "dev", - "test", - "qa", - "ete", - "prod" - ], - "portfolio": "safeco", - "release": "2016_01", - "specific_settings": { - "environment" : { - "ete" : {"release" : "mary_poppins"} - }, - "appName" : { - "app1": { - "portfolio": "claims2" - }, - "app2": { - "release": "2016_08" - } - } - } - }, - "template_plan": { - "phases": [ - { - "title": "build for $", - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease", - "parent_task_type" : "xlrelease.CustomScriptTask" - - }, - "title": "$ Build", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_BUILD", - "releaseTitle": "Build $", - "releaseDescription": "Build $", - "variables": "appName=$", - "asynch": "false" - } - ] - }, - { - "title": "deploy for $ to $ ", - "meta": { - "repeat_on": "environment" - }, - "containers": [ - { - "tasks": [ - { - "meta": { - "repeat_on": "appName", - "task_type": "xlr.CreateAndStartSubRelease", - "parent_task_type" : "xlrelease.CustomScriptTask" - }, - "title": "$ deploy", - "xlrServer": "local", - "username": "admin", - "templateName": "WASLP_DEPLOY", - "releaseTitle": "Deploy $ to $", - "releaseDescription": "Deploy $ to $", - "variables": "appName=$,portfolio=$,release=$" - } - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/src/main/resources/test_steps.json b/src/main/resources/test_steps.json deleted file mode 100644 index 73e33cd..0000000 --- a/src/main/resources/test_steps.json +++ /dev/null @@ -1,50 +0,0 @@ - - - - - -//{ -// "phases":[{ -// "build":{ -// "name": "build_$appName", -// "steps": [{ -// "xlrelease.CreateReleaseTask": { -// "title": "$appName", -// "status": "planned", -// "owner": "", -// "templateId": "Applications/waslp_Build", -// "newReleaseTitle": "testTemplate", -// "templateVariables": [ -// { -// "key": "appName", -// "value": "$appName" -// }, -// { -// "key": "release", -// "value": "$release" -// } -// ] -// "variables": ["appname", "release"] -// -// }}]}},{ -// "deploy_$env":{} -// {"xlrelease.CreateReleaseTask": { -// "title": "$appName", -// "status": "planned", -// "owner": "", -// "templateId": "Applications/waslp_deploy", -// "newReleaseTitle": "testTemplate", -// "templateVariables": [ -// { -// "key": "appName", -// "value": "$appName" -// }, -// { -// "key": "release", -// "value": "$release" -// } -// ] -// }, -// "variables": ["appname", "release","environments"] -// } -// ]] \ No newline at end of file