This repository was archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.settings.props
283 lines (249 loc) · 11.8 KB
/
deploy.settings.props
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
DefaultTargets="Run"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
The following ItemGroup defines which steps are taken during the deploy process. The order of the items in the item group
determines in which order the deploy steps are executed.
The following default steps are always executed:
- Restoring the NuGet packages as specified in the '$(DirWorkspace)\packages.config' file. Additionally also restores the
NuGet packages as specified in the nBuildKit specific 'packages.config' files.
The following deploy steps are by default provided through the given properties:
$(DeployStepsPrepareVcsBranch) - When building from a GIT repository on Jenkins ensures that the current checkout has the same branch
name as the remote tracking branch.
$(DeployStepsPrepareGetIssueIds) - Gets the issue IDs from the commits on the current branch and stores them in a temp file for later use.
$(DeployStepsTagVcs) - Tags the current commit with the version number. Currentlyl supported version control systems are TFS and GIT.
$(DeployStepsPushToNuget) - Pushes one or more artifacts to a NuGet feed
$(DeployStepsPushToDirectory) - Pushes one or more artifacts to a directory
$(DeployStepsPushToSymbolServer) - Pushes one or more NuGet symbol packages to a local symbol server on a UNC path
$(DeployStepsPushToGitHubRelease) - Pushes zero or more files to a GitHub release
Additional deploy steps can be defined by providing the path to the MsBuild script that should be executed
for that step, e.g. adding a deploy step that points to the 'c:\stuff\MyCoolScript.msbuild' will execute
that script.
Each script has the following properties passed to it:
$(SharedPropertyFile) - The full path to the settings.props file (i.e. this file).
$(NBuildKitVersion) - The full version of the nBuildKit library that is executing the build.
$(DirNBuildKitMsBuild) - The full path to the directory that contains the nBuildKit scripts.
$(DirNBuildKitMsBuildShared) - The full path to the directory that contains the shared nBuildkit scripts.
$(DirNBuildKitMsBuildExtensions) - The full path to the directory that contains the nBuildKit extension scripts.
$(DirNBuildKitMsBuildTemplates) - The full path to the directory that contains the nBuildKit templates.
-->
<ItemGroup>
<DeployStepsToExecute Include="$(DeployStepsPrepareVcsBranch)">
<Properties>
</Properties>
<Groups>
Prepare;
</Groups>
</DeployStepsToExecute>
<DeployStepsToExecute Include="$(DeployStepsPrepareGetIssueIds)">
<Properties>
</Properties>
<Groups>
Prepare;
</Groups>
</DeployStepsToExecute>
<!--
<DeployStepsToExecute Include="$(DeployStepsTagVcs)">
<Properties>
Configuration=$(ProductionConfiguration);
Platform=$(Platform);
</Properties>
<Groups>
Tag;
</Groups>
</DeployStepsToExecute>
-->
<DeployStepsToExecute Include="$(DeployStepsPushToNuget)">
<Properties>
Configuration=$(ProductionConfiguration);
Platform=$(Platform);
</Properties>
<Groups>
NuGet;
Push;
</Groups>
</DeployStepsToExecute>
<!--
<DeployStepsToExecute Include="$(DeployStepsPushToDirectory)">
<Properties>
Configuration=$(ProductionConfiguration);
Platform=$(Platform);
</Properties>
<Groups>
Directory;
Push;
</Groups>
</DeployStepsToExecute>
<DeployStepsToExecute Include="$(DeployStepsPushToSymbolServer)">
<Properties>
Configuration=$(ProductionConfiguration);
Platform=$(Platform);
</Properties>
<Groups>
Push;
SymbolServer;
</Groups>
</DeployStepsToExecute>
-->
<!--
<DeployStepsToExecute Include="$(DeployStepsPushToGitHubRelease)">
<Properties>
Configuration=$(ProductionConfiguration);
Platform=$(Platform);
</Properties>
<Groups>
GitHub;
Push;
</Groups>
</DeployStepsToExecute>
-->
<DeployStepsToExecute Include="$(DeployStepsPushToGitBranch)">
<Properties>
Configuration=$(ProductionConfiguration);
Platform=$(Platform);
</Properties>
<Groups>
Git;
Push;
</Groups>
</DeployStepsToExecute>
</ItemGroup>
<!--
Define the scripts that should be executed when any one of the deploy steps fails.
Steps can be defined by providing the path to the MsBuild script that should be executed
for that step, e.g. adding a deploy step that points to the 'c:\stuff\MyCoolScript.msbuild' will execute
that script.
Each script has the following properties passed to it:
$(SharedPropertyFile) - The full path to the settings.props file (i.e. this file).
$(NBuildKitVersion) - The full version of the nBuildKit library that is executing the build.
$(DirNBuildKitMsBuild) - The full path to the directory that contains the nBuildKit scripts.
$(DirNBuildKitMsBuildShared) - The full path to the directory that contains the shared nBuildkit scripts.
$(DirNBuildKitMsBuildExtensions) - The full path to the directory that contains the nBuildKit extension scripts.
$(DirNBuildKitMsBuildTemplates) - The full path to the directory that contains the nBuildKit templates.
Additionally any properties defined by the 'Properties' section are also pushed up.
-->
<ItemGroup>
<!--
<DeployFailureStepsToExecute Include="">
<Properties>
</Properties>
</DeployFailureStepsToExecute>
-->
</ItemGroup>
<!--
**** PUSHTO - DIRECTORY / FILESERVER ****
-->
<!--
The ItemGroup defining the files that should be pushed to a given deployment directory.
The IncludedFiles and the ExcludedFiles are lists of files that
should be included (or excluded) in the list of files to deploy. Each entry is separated by a semi-colon(;).
The PushToDirectorySpecs, IncludedFiles and ExcludedFiles all allow the insertion of build templates,
e.g. \\MyServer\${ProductNameInFilePath}\${VersionSemantic}
-->
<ItemGroup>
<!--<PushToDirectorySpecs Include="\\MyServer\${ProductNameInFilePath}\${VersionSemantic}">
<IncludedFiles>
$(DirBuildDeploy)\myfile.zip
</IncludedFiles>
<ExcludedFiles>
</ExcludedFiles>
</PushToDirectorySpecs>-->
</ItemGroup>
<!--
**** PUSHTO - NUGET ****
-->
<PropertyGroup>
<!--
The URL to which all NuGet packages should be pushed. By default it pushes to nuget.org.
If the repository needs authentication then the API key should be defined via an environment variable:
NuGetApiKey - The NuGet API key for the NuGet feed
-->
<!--<NuGetSourceUrl Condition=" '$(NuGetSourceUrl)' == '' ">UNDEFINED</NuGetSourceUrl>-->
</PropertyGroup>
<!--
The ItemGroup defining which packages should be pushed up to the NuGet package source.
Allows build templates, e.g. $(DirBuildDeploy)\${VersionSemantic}\*.nupkg.
-->
<ItemGroup>
<!--<NuGetPackagesToPush Include="$(DirBuildDeploy)\*.nupkg"
Exclude="$(DirBuildDeploy)\*.symbols.nupkg" />-->
</ItemGroup>
<!--
**** PUSHTO - SYMBOL SERVER ****
-->
<!--
The ItemGroup defining which symbol packages should be pushed up to the symbol server.
Allows build templates, e.g. $(DirBuildDeploy)\${VersionSemantic}\*.symbols.nupkg.
-->
<PropertyGroup>
<!--
The URL to which all NuGet symbol packages should be pushed. If the repository needs authentication then
the API key should be defined via an environment variable:
NuGetApiKey - The NuGet API key for the NuGet feed
-->
<!--<NuGetSymbolSourceUrl Condition=" '$(NuGetSymbolSourceUrl)' == '' ">UNDEFINED</NuGetSymbolSourceUrl>-->
<!--
The URL / UNC path to which all the symbol packages should be pushed.
-->
<!--<SymbolServerUncPath Condition=" '$(SymbolServerUncPath)' == '' ">UNDEFINED</SymbolServerUncPath>-->
</PropertyGroup>
<ItemGroup>
<!--<SymbolPackagesToPush Include="$(DirBuildDeploy)\*.symbols.nupkg" />-->
</ItemGroup>
<!--
**** PUSHTO - GITHUB RELEASE ****
-->
<!--
The ItemGroup defining the files that should be pushed to a GitHub release. All properties
except for the Repository allow the use of build templates, e.g. $(DirBuildDeploy)\myarchive-${VersionSemantic}.zip
-->
<ItemGroup>
<PushToGitHubReleaseSpecs Include="${VersionSemantic}">
<Repository>Nuclei.Diagnostics</Repository>
<Description>${ReleaseNotes}</Description>
<IncludedFiles></IncludedFiles>
<ExcludedFiles></ExcludedFiles>
</PushToGitHubReleaseSpecs>
</ItemGroup>
<!--
**** PUSHTO - GIT BRANCH ****
-->
<!--
The ItemGroup defining the files that should be pushed to a GIT branch. All properties
allow the use of build templates, e.g. $(DirBuildDeploy)\myarchive-${VersionSemantic}.zip
-->
<ItemGroup>
<PushToGitBranchSpecs Include="$(DirBuildDeploy)\*.documentation*.zip">
<Repository>$(GitRemoteRepository)</Repository>
<Branch>gh-pages</Branch>
<ExtractZipFiles>true</ExtractZipFiles>
<CommitMessage>Documentation update for version ${VersionSemantic}</CommitMessage>
</PushToGitBranchSpecs>
</ItemGroup>
<!--
*************************************
* *
* SHARED TOOLS *
* *
*************************************
-->
<!-- Overrides for the tools paths -->
<PropertyGroup>
<!--
The full path to the github-release command line executable.
-->
<!-- <ToolsExternalGitHubReleasePath Condition=" '$(ToolsExternalGitHubReleasePath)' == '' ">github-release.exe</ToolsExternalGitHubReleasePath> -->
</PropertyGroup>
<!--
*****************************************
* *
* NBUILDKIT SPECIFIC SETTINGS *
* *
*****************************************
-->
<PropertyGroup>
<!-- Defines whether the current script file has been loaded / imported or not -->
<ExistsDeploySettings>true</ExistsDeploySettings>
</PropertyGroup>
</Project>