try to fix jenkins nuget restore
All checks were successful
PiwigoDirectorySync/pipeline/head This commit looks good

This commit is contained in:
Philipp Häfelfinger 2023-08-30 23:59:36 +02:00
parent 55f07c9d4c
commit 31ca91b1ab

4
Jenkinsfile vendored
View File

@ -11,12 +11,12 @@ pipeline {
stages { stages {
stage('preparing workspace') { stage('preparing workspace') {
steps { steps {
cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.nuget/NuGet/NuGet.Config', type: 'INCLUDE']] cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.nuget/NuGet/NuGet.Config', type: 'INCLUDE'],[pattern: 'NuGet.Config', type: 'INCLUDE']]
dir('publish') { dir('publish') {
deleteDir() deleteDir()
} }
withCredentials([usernamePassword(credentialsId: 'giteaNugetPushCreds', passwordVariable: 'NUGETPWD', usernameVariable: 'NUGETUSR')]) { withCredentials([usernamePassword(credentialsId: 'giteaNugetPushCreds', passwordVariable: 'NUGETPWD', usernameVariable: 'NUGETUSR')]) {
sh 'dotnet nuget add source --name gitea --username $NUGETUSR --password $NUGETPWD --store-password-in-clear-text https://git.haefelfinger.net/api/packages/piwigo/nuget/index.json' sh 'dotnet nuget add source --name piwigo.git.haefelfinger.net --username $NUGETUSR --password $NUGETPWD --store-password-in-clear-text https://git.haefelfinger.net/api/packages/piwigo/nuget/index.json'
} }
} }
} }