fixes declarative when for nuget push
All checks were successful
piwigodotnet/pipeline/head This commit looks good

This commit is contained in:
Philipp Häfelfinger 2022-11-03 16:02:46 +01:00
parent f68355a966
commit bd812eceee

11
Jenkinsfile vendored
View File

@ -40,12 +40,11 @@ pipeline {
} }
} }
// we only publish packages for the main branch stage('nuget publish') {
if (env.BRANCH_NAME == 'main') { // we only publish packages for the main branch
stage('nuget publish') { when { branch 'main' }
steps { steps {
sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg" sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg"
}
} }
} }