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

5
Jenkinsfile vendored
View File

@ -40,14 +40,13 @@ pipeline {
}
}
// we only publish packages for the main branch
if (env.BRANCH_NAME == 'main') {
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"
}
}
}
}