diff --git a/Jenkinsfile b/Jenkinsfile index 97dab52..9f45f72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,6 +15,9 @@ pipeline { } stage('Publish') { + when { + branch 'master' + } steps { sh '''dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true ''' @@ -25,4 +28,4 @@ pipeline { environment { BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676') } -} \ No newline at end of file +}