File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 15
15
ENABLED_PUBLISH_DOCKER : true
16
16
ENABLED_PUBLISH_GEM : true
17
17
ENABLED_PUBLISH_NUGET : true
18
- ENABLED_PUBLISH_CHOCOLATEY : false
18
+ ENABLED_PUBLISH_CHOCOLATEY : true
19
19
20
20
jobs :
21
21
build :
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ Task("Publish-NuGet-Internal")
100
100
if ( FileExists ( package . PackagePath ) )
101
101
{
102
102
// Push the package.
103
- NuGetPush ( package . PackagePath , new NuGetPushSettings
103
+ DotNetCoreNuGetPush ( package . PackagePath . FullPath , new DotNetCoreNuGetPushSettings
104
104
{
105
105
ApiKey = apiKey ,
106
106
Source = apiUrl
@@ -137,13 +137,20 @@ Task("Publish-Chocolatey-Internal")
137
137
{
138
138
if ( FileExists ( package . PackagePath ) )
139
139
{
140
- // Push the package.
141
- ChocolateyPush ( package . PackagePath , new ChocolateyPushSettings
140
+ try
142
141
{
143
- ApiKey = apiKey ,
144
- Source = apiUrl ,
145
- Force = true
146
- } ) ;
142
+ // Push the package.
143
+ ChocolateyPush ( package . PackagePath , new ChocolateyPushSettings
144
+ {
145
+ ApiKey = apiKey ,
146
+ Source = apiUrl ,
147
+ Force = true
148
+ } ) ;
149
+ }
150
+ catch ( System . Exception )
151
+ {
152
+ // chocolatey sometimes fails with an error, even if the package gets pushed
153
+ }
147
154
}
148
155
}
149
156
} )
You can’t perform that action at this time.
0 commit comments