fixes declarative when for nuget push
All checks were successful
piwigodotnet/pipeline/head This commit looks good
All checks were successful
piwigodotnet/pipeline/head This commit looks good
This commit is contained in:
parent
f68355a966
commit
bd812eceee
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -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"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user