-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.xml
126 lines (121 loc) · 5.63 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
<?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>JiriSebestaGITAccessToken</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>export_environment</name>
<description>environment override. E.g. mypurecloud.com.au or ap-southeast-2</description>
<defaultValue>mypurecloud.de</defaultValue>
<trim>true</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>import_environment</name>
<description>environment override. E.g. mypurecloud.com.au or ap-southeast-2</description>
<defaultValue>mypurecloud.de</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/genesyscloudarchy</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"
# EXPORT
# Prepare flow list for Archy export
"$WORKSPACE"/gc flows list -a --transform archy_export_all.tmpl --clientid $export_oauthclient_id --clientsecret $export_oauthclient_secret --environment $export_environment > export_architect_flows.bat
# Create options file for export
echo "clientId: $export_oauthclient_id" > myOptions.yaml
echo "clientSecret: $export_oauthclient_secret" >> myOptions.yaml
echo "location: $export_environment" >> myOptions.yaml
# Archy Export
cmd /c call "$WORKSPACE"/export_architect_flows.bat
# Create options file for import
echo "clientId: $import_oauthclient_id" > myOptions.yaml
echo "clientSecret: $import_oauthclient_secret" >> myOptions.yaml
echo "location: $import_environment" >> myOptions.yaml
# Archy Import
set +e
for f in ./output/*.yaml; do "$WORKSPACE"/archy publish --optionsFile myOptions.yaml --file "$f"; done</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>