From ca434b23242972d3307da24b3ad80cff35260f70 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 1 Jan 2021 11:10:35 +0100 Subject: [PATCH] Only publish on master --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 +}