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