diff --git a/Jenkinsfile b/Jenkinsfile index e46aec187..c2fcdae4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -252,6 +252,18 @@ pipeline { '''.stripIndent() } } + } + + stage ('Publishing artifacts to clouds'){ + when { branch 'release/latest' } + agent { label 'windows' } + + steps{ + unstash 'winDist' + withCredentials([string(credentialsId: 'NuGetToken', variable: 'NUGET_TOKEN')]) { + bat "chcp $outputEnc > nul\r\n\"${tool 'MSBuild'}\" Build.csproj /t:PublishNuget /p:NugetToken=$NUGET_TOKEN" + } + } } }