-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.xml
146 lines (139 loc) · 6.6 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="[email protected]">
<gitLabConnection>https://gitlab.int.infinit.cx/</gitLabConnection>
<jobCredentialId></jobCredentialId>
<useAlternativeCredential>false</useAlternativeCredential>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<com.sonyericsson.rebuild.RebuildSettings plugin="[email protected]">
<autoRebuild>false</autoRebuild>
<rebuildDisabled>false</rebuildDisabled>
</com.sonyericsson.rebuild.RebuildSettings>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>export_oauthclient_id</name>
<description>EXPORT - OAuthClient ID found on the OAuth page of Admin UI</description>
<trim>true</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>export_oauthclient_secret</name>
<description>EXPORT - OAuthClient secret found on the OAuth page of Admin UI.</description>
<trim>true</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>import_oauthclient_id</name>
<description>IMPORT - OAuthClient ID found on the OAuth page of Admin UI</description>
<trim>true</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>import_oauthclient_secret</name>
<description>IMPORT - OAuthClient secret found on the OAuth page of Admin UI.</description>
<trim>true</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>resource_types</name>
<description>Resource types to export - https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs
Examples:
"genesyscloud_architect_datatable"
"genesyscloud_architect_datatable_row"
"genesyscloud_architect_user_prompt"
"genesyscloud_architect_schedules"
"genesyscloud_routing_queue"
"genesyscloud_architect_ivr"
"genesyscloud_user"
DataTables Export - "genesyscloud_architect_datatable", "genesyscloud_architect_datatable_row"
Queues & Members of queue - "genesyscloud_user", "genesyscloud_routing_queue"</description>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>aws_region_export</name>
<description>EXPORT AWS region where org exists. e.g. us-east-1
https://help.mypurecloud.com/articles/aws-regions-for-genesys-cloud-deployment/</description>
<defaultValue>eu-central-1</defaultValue>
<trim>true</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>aws_region_import</name>
<description>IMPORT AWS region where org exists. e.g. us-east-1
https://help.mypurecloud.com/articles/aws-regions-for-genesys-cloud-deployment/</description>
<defaultValue>eu-central-1</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://gitlab.int.infinit.cx/ext.kamil.sienicki/genesyscloudterraform/</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>*/main</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="empty-list"/>
<extensions/>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>export PATH="/cygdrive/c/Tools/cygwin64/bin/:$PATH"
# Update resource_types variable in terraform file
sed -i "s/RESOURCE_TYPES/${resource_types}/g" genesyscloud_tf_export.tf
# EXPORT
export GENESYSCLOUD_REGION=$aws_region_export
export GENESYSCLOUD_OAUTHCLIENT_ID=$export_oauthclient_id
export GENESYSCLOUD_OAUTHCLIENT_SECRET=$export_oauthclient_secret
"$WORKSPACE"/terraform init -no-color
"$WORKSPACE"/terraform apply -no-color -auto-approve
# IMPORT
export GENESYSCLOUD_REGION=$aws_region_import
export GENESYSCLOUD_OAUTHCLIENT_ID=$import_oauthclient_id
export GENESYSCLOUD_OAUTHCLIENT_SECRET=$import_oauthclient_secret
"$WORKSPACE"/terraform -chdir=genesyscloud_tf_export init -no-color
"$WORKSPACE"/terraform -chdir=genesyscloud_tf_export apply -no-color -auto-approve
# DESTROY (for testing)
sleep 120
"$WORKSPACE"/terraform -chdir=genesyscloud_tf_export destroy -auto-approve -no-color</command>
<configuredLocalRules/>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.plugins.ws__cleanup.WsCleanup plugin="[email protected]">
<patterns class="empty-list"/>
<deleteDirs>false</deleteDirs>
<skipWhenFailed>false</skipWhenFailed>
<cleanWhenSuccess>true</cleanWhenSuccess>
<cleanWhenUnstable>true</cleanWhenUnstable>
<cleanWhenFailure>true</cleanWhenFailure>
<cleanWhenNotBuilt>true</cleanWhenNotBuilt>
<cleanWhenAborted>true</cleanWhenAborted>
<notFailBuild>false</notFailBuild>
<cleanupMatrixParent>false</cleanupMatrixParent>
<externalDelete></externalDelete>
<disableDeferredWipeout>false</disableDeferredWipeout>
</hudson.plugins.ws__cleanup.WsCleanup>
</publishers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="[email protected]">
<deleteDirs>false</deleteDirs>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
<disableDeferredWipeout>false</disableDeferredWipeout>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
</buildWrappers>
</project>