diff --git a/Jenkinsfile b/Jenkinsfile index 4e87854..a9939a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,9 @@ done''' } stage('Publish') { + when { + branch 'master' + } steps { sh '''for i in **/*.nupkg; do dotnet nuget push -s http://localhost:5000/v3/index.json $i -k $BAGET -n true @@ -31,4 +34,4 @@ done''' environment { BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676') } -} \ No newline at end of file +}