From bc18d4db15098dae88a7839adb987a7beb17fbfa Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 5 Mar 2020 00:41:29 +0100 Subject: [PATCH] only publish on master --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +}