forked from devbridge/AzureMessaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuremessaging.nugetorg.ccnet
128 lines (109 loc) · 5.07 KB
/
azuremessaging.nugetorg.ccnet
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
<project>
<parameters>
<textParameter>
<name>CodeBranch</name>
<display>Source code branch</display>
<required>true</required>
<default>master</default>
<minimum>2</minimum>
</textParameter>
<textParameter>
<name>CodeVersion</name>
<display>3 digits version to apply (ex. 1.0.5) or default 1.0.0</display>
<description>A version to use for the release tagging.</description>
<required>true</required>
<default>1.0.0</default>
<minimum>5</minimum>
<maximum>11</maximum>
</textParameter>
<selectParameter>
<name>CodeMilestone</name>
<display>Milestone</display>
<allowedValues>
<value name="None"></value>
<value name="Alpha">-alpha</value>
<value name="Beta">-beta</value>
<value name="RC">-rc</value>
</allowedValues>
<default>None</default>
</selectParameter>
<textParameter>
<name>CodeMilestoneCounter</name>
<display>Milestone Counter</display>
<default></default>
<required>false</required>
</textParameter>
</parameters>
<name>AzureMessaging (nuget.org)</name>
<category>DevBridge</category>
<workingDirectory>$(buildsFolder)\AzureMessaging_NUGETORG\Code</workingDirectory>
<artifactDirectory>$(buildsFolder)\AzureMessaging_NUGETORG\Artifact</artifactDirectory>
<webURL>$(ccnetUrl)/server/local/project/AzureMessaging%20%28nuget.org%29/ViewProjectReport.aspx</webURL>
<modificationDelaySeconds>30</modificationDelaySeconds>
<labeller type="defaultlabeller">
<initialBuildLabel>0</initialBuildLabel>
<prefix>$[CodeVersion].</prefix>
<incrementOnFailure>false</incrementOnFailure>
<labelFormat>0</labelFormat>
</labeller>
<cb:define CodeBuildTagName="$[CodeVersion]$[CodeMilestone]$[CodeMilestoneCounter]" />
<cb:define CodeBuildTagMessage="Tagging build with a $[CodeVersion]$[CodeMilestone]$[CodeMilestoneCounter] version." />
<sourcecontrol type="git">
<repository>git@github.com:devbridge/AzureMessaging.git</repository>
<branch>$[CodeBranch]</branch>
<autoGetSource>true</autoGetSource>
<fetchSubmodules>true</fetchSubmodules>
<executable>$(gitPath)</executable>
<tagOnSuccess>true</tagOnSuccess>
<commitBuildModifications>false</commitBuildModifications>
<commitUntrackedFiles>false</commitUntrackedFiles>
<workingDirectory>$(buildsFolder)\AzureMessaging_NUGETORG\Code</workingDirectory>
<tagCommitMessage>$(CodeBuildTagMessage)</tagCommitMessage>
<tagNameFormat>$(CodeBuildTagName)</tagNameFormat>
<timeout>60000</timeout>
</sourcecontrol>
<triggers>
<!-- BUILD STARTS MANUALY! -->
</triggers>
<tasks>
<exec description="Update assembly info file with build version.">
<executable>$(ccnetextensionsConsole)</executable>
<buildArgs>UpdateAssemblyInfo $(buildsFolder)\AzureMessaging_NUGETORG\Code\Devbridge.AzureMessaging\Properties\AssemblyInfo.cs $[$CCNetLabel] $[$CCNetLabel] $[CodeVersion]$[CodeMilestone]$[CodeMilestoneCounter]</buildArgs>
<buildTimeoutSeconds>300</buildTimeoutSeconds>
</exec>
<exec description="Copy Devbridge.AzureMessaging.Tests App.config.">
<executable>cmd.exe</executable>
<buildArgs>/c echo f|xcopy/r/y $(buildsFolder)\AzureMessaging_NUGETORG\tests.App.config $(buildsFolder)\AzureMessaging_NUGETORG\Code\Devbridge.AzureMessaging.Tests\App.config</buildArgs>
<buildTimeoutSeconds>300</buildTimeoutSeconds>
</exec>
<exec description="Build Devbridge.AzureMessaging solution.">
<executable>$(msbuild4Path)</executable>
<buildArgs>$(buildsFolder)\AzureMessaging_NUGETORG\Code\Devbridge.AzureMessaging.sln /nologo /t:Rebuild /p:Configuration=Release</buildArgs>
<buildTimeoutSeconds>300</buildTimeoutSeconds>
</exec>
<exec description="Run Devbridge.AzureMessaging.Tests tests.">
<executable>$(nunitConsole)</executable>
<buildArgs>$(buildsFolder)\AzureMessaging_NUGETORG\Code\Devbridge.AzureMessaging.Tests\bin\Release\Devbridge.AzureMessaging.Tests.dll /xml:$(buildsFolder)\AzureMessaging_NUGETORG\Artifact\Devbridge.AzureMessaging.Tests-Results.xml</buildArgs>
</exec>
<exec description="Publish AzureMessaging to NuGet.org">
<executable>$(buildsFolder)\AzureMessaging_NUGETORG\Code\.nuget\nuget</executable>
<buildArgs>push $(buildsFolder)\AzureMessaging_NUGETORG\Code\Devbridge.AzureMessaging.NugetPackage\bin\Release\AzureMessaging.$[CodeVersion]$[CodeMilestone]$[CodeMilestoneCounter].nupkg</buildArgs>
<buildTimeoutSeconds>600</buildTimeoutSeconds>
</exec>
<exec description="Clean up project.">
<executable>$(msbuild4Path)</executable>
<buildArgs>$(buildsFolder)\AzureMessaging_NUGETORG\Code\Devbridge.AzureMessaging.sln /nologo /t:Clean</buildArgs>
<buildTimeoutSeconds>300</buildTimeoutSeconds>
</exec>
</tasks>
<publishers>
<merge>
<files>
<file>$(buildsFolder)\AzureMessaging_NUGETORG\Artifact\*-results.xml</file>
</files>
</merge>
<xmllogger />
<statistics />
<modificationHistory onlyLogWhenChangesFound="true" />
</publishers>
</project>