fixes declarative when for nuget push
piwigodotnet/pipeline/head This commit looks good Details

This commit is contained in:
Philipp Häfelfinger 2022-11-03 16:02:46 +01:00
parent f68355a966
commit bd812eceee
1 changed files with 5 additions and 6 deletions

11
Jenkinsfile vendored
View File

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