File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ project {
1111object ChocolateyNugetClient : BuildType({
1212 name = " Build"
1313
14+ templates(AbsoluteId ("SlackNotificationTemplate "))
15+
1416 artifactRules = """
1517 +:artifacts/nupkgs/*.nupkg
1618 -:artifacts/nupkgs/*.symbols.nupkg
@@ -37,19 +39,21 @@ object ChocolateyNugetClient : BuildType({
3739 if ((Get-WindowsFeature -Name NET-Framework-Features).InstallState -ne 'Installed') {
3840 Install-WindowsFeature -Name NET-Framework-Features
3941 }
40-
42+
4143 choco install visualstudio2022-workload-manageddesktopbuildtools visualstudio2022-workload-visualstudioextensionbuildtools visualstudio2022-component-texttemplating-buildtools --confirm --no-progress
42-
44+
4345 exit ${' $' } LastExitCode
4446 """ .trimIndent()
4547 }
4648 }
49+
4750 powerShell {
4851 name = " Configure .NET and other dependencies"
4952 scriptMode = file {
5053 path = " configure.ps1"
5154 }
5255 }
56+
5357 powerShell {
5458 name = " Build"
5559 scriptMode = script {
@@ -64,11 +68,12 @@ object ChocolateyNugetClient : BuildType({
6468 elseif ( ${' $' } branchName.StartsWith('proj') ) { ${' $' } releaseLabel = 'alpha' }
6569 elseif ( ${' $' } branchName.StartsWith('bugfix') ) { ${' $' } releaseLabel = 'beta' }
6670 elseif ( ${' $' } branchName.StartsWith('pull') ) { ${' $' } releaseLabel = 'pr' }
67-
71+
6872 .\build.ps1 -CI -SkipUnitTest -ChocolateyBuild -BuildNumber %build.counter% -ReleaseLabel ${' $' } releaseLabel -BuildDate (Get-Date -Format "yyyyMMdd")
6973 """ .trimIndent()
7074 }
7175 }
76+
7277 powerShell {
7378 conditions {
7479 doesNotContain("teamcity.build.branch", "pull")
You can’t perform that action at this time.
0 commit comments