-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjob-config-master.xml
More file actions
192 lines (191 loc) · 9.24 KB
/
job-config-master.xml
File metadata and controls
192 lines (191 loc) · 9.24 KB
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>Builds 'master' branch <a href="https://github.com/TheRealGD/therealgd/tree/master"> here</a> .</description>
<keepDependencies>false</keepDependencies>
<properties>
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.29.0">
<projectUrl>https://github.com/TheRealGD/therealgd/</projectUrl>
<displayName></displayName>
</com.coravy.hudson.plugins.github.GithubProjectProperty>
<com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.27">
<autoRebuild>false</autoRebuild>
<rebuildDisabled>false</rebuildDisabled>
</com.sonyericsson.rebuild.RebuildSettings>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.BooleanParameterDefinition>
<name>CLEANWORKSPACE</name>
<description>If checked, the build's workspace will be cleared and a Git checkout triggered.</description>
<defaultValue>false</defaultValue>
</hudson.model.BooleanParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.8.0">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://github.com/TheRealGD/therealgd.git</url>
<credentialsId>e42a54a9-8e78-445e-a4ff-5e612c0163eb</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>*/master</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="list"/>
<extensions/>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>node -v
npm -v
composer -V
php -version
phpunit --version
npm install
npm run build-prod</command>
</hudson.tasks.Shell>
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.3.6">
<condition class="org.jenkins_ci.plugins.run_condition.core.BooleanCondition" plugin="run-condition@1.0">
<token>${DEPLOY}</token>
</condition>
<buildStep class="jenkins.plugins.publish_over_ssh.BapSshBuilderPlugin" plugin="publish-over-ssh@1.19.1">
<delegate>
<consolePrefix>SSH: </consolePrefix>
<delegate plugin="publish-over@0.21">
<publishers>
<jenkins.plugins.publish__over__ssh.BapSshPublisher plugin="publish-over-ssh@1.19.1">
<configName>Digital Ocean box (DEV)</configName>
<verbose>false</verbose>
<transfers>
<jenkins.plugins.publish__over__ssh.BapSshTransfer>
<remoteDirectory></remoteDirectory>
<sourceFiles>**/*</sourceFiles>
<excludes>.git/**</excludes>
<removePrefix></removePrefix>
<remoteDirectorySDF>false</remoteDirectorySDF>
<flatten>false</flatten>
<cleanRemote>false</cleanRemote>
<noDefaultExcludes>false</noDefaultExcludes>
<makeEmptyDirs>true</makeEmptyDirs>
<patternSeparator>[, ]+</patternSeparator>
<execCommand></execCommand>
<execTimeout>120000</execTimeout>
<usePty>false</usePty>
<useAgentForwarding>false</useAgentForwarding>
</jenkins.plugins.publish__over__ssh.BapSshTransfer>
</transfers>
<useWorkspaceInPromotion>false</useWorkspaceInPromotion>
<usePromotionTimestamp>false</usePromotionTimestamp>
</jenkins.plugins.publish__over__ssh.BapSshPublisher>
</publishers>
<continueOnError>false</continueOnError>
<failOnError>false</failOnError>
<alwaysPublishFromMaster>false</alwaysPublishFromMaster>
<hostConfigurationAccess class="jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin" reference="../.."/>
</delegate>
</delegate>
</buildStep>
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail" plugin="run-condition@1.0"/>
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
</builders>
<publishers>
<com.github.jenkins.lastchanges.LastChangesPublisher plugin="last-changes@2.6.1">
<specificRevision></specificRevision>
<specificBuild></specificBuild>
<since>PREVIOUS_REVISION</since>
<format>LINE</format>
<matching>NONE</matching>
<vcsDir></vcsDir>
<showFiles>true</showFiles>
<synchronisedScroll>true</synchronisedScroll>
<matchWordsThreshold>0.25</matchWordsThreshold>
<matchingMaxComparisons>1000</matchingMaxComparisons>
<isGit>false</isGit>
<isSvn>false</isSvn>
</com.github.jenkins.lastchanges.LastChangesPublisher>
</publishers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.34">
<deleteDirs>false</deleteDirs>
<cleanupParameter>CLEANWORKSPACE</cleanupParameter>
<externalDelete></externalDelete>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
<org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper plugin="credentials-binding@1.16">
<bindings>
<org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordBinding>
<credentialsId>e42a54a9-8e78-445e-a4ff-5e612c0163eb</credentialsId>
<variable>GITHUB_CREDENTIALS</variable>
</org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordBinding>
</bindings>
</org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper>
<hudson.plugins.release.ReleaseWrapper plugin="release@2.10.1">
<releaseVersionTemplate></releaseVersionTemplate>
<doNotKeepLog>false</doNotKeepLog>
<overrideBuildParameters>false</overrideBuildParameters>
<parameterDefinitions>
<hudson.model.BooleanParameterDefinition>
<name>CLEANWORKSPACE</name>
<description><h3>If checked, the build's workspace will be cleared and a Git checkout triggered.</h3></description>
<defaultValue>false</defaultValue>
</hudson.model.BooleanParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>RELEASE_VERSION</name>
<description><h3>Semantic version of this release - <font color="red">x.y.z</font>, where x,y & z are integers. For example, 1.0.0 or 2.17.2.</h3>
<h3> This version will be the name of the tag created in GitHub repo </h3></description>
<defaultValue></defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.BooleanParameterDefinition>
<name>DEPLOY</name>
<description><h3>Check this box if you want to deploy to PROD server</h3></description>
<defaultValue>false</defaultValue>
</hudson.model.BooleanParameterDefinition>
<hudson.model.TextParameterDefinition>
<name>RELEASE_NOTES</name>
<description><h3>What was implemented in this release ? Put each feature on a separate line (can be modified later in GitHub)</h3></description>
<defaultValue>FEATURE 1
FEATURE 2
FEATURE 3
FEATURE n
</defaultValue>
<trim>false</trim>
</hudson.model.TextParameterDefinition>
</parameterDefinitions>
<preBuildSteps/>
<postBuildSteps/>
<postSuccessfulBuildSteps>
<org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider@2.18">
<managedFiles>
<org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
<fileId>b24753f7-bbf4-49f6-8c87-78a77d656b4a</fileId>
<targetLocation>${WORKSPACE}/git-release.groovy</targetLocation>
<replaceTokens>false</replaceTokens>
</org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
</managedFiles>
</org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
<hudson.tasks.Shell>
<command>groovy -version
groovy ${WORKSPACE}/git-release.groovy ${GITHUB_CREDENTIALS} ${GIT_BRANCH} ${RELEASE_VERSION} "${RELEASE_NOTES}"
# Show git tags to prove that Groovy script generated new tag for this release
git tag</command>
</hudson.tasks.Shell>
</postSuccessfulBuildSteps>
<postFailedBuildSteps/>
<preMatrixBuildSteps/>
<postSuccessfulMatrixBuildSteps/>
<postFailedMatrixBuildSteps/>
<postMatrixBuildSteps/>
</hudson.plugins.release.ReleaseWrapper>
</buildWrappers>
</project>