Fix gestione nuget restore
This commit is contained in:
Vendored
+14
-3
@@ -32,9 +32,13 @@ pipeline {
|
||||
currentBuild.description = "BUILD ${env.versionNumber}"
|
||||
}
|
||||
}
|
||||
// CAMBIO numero versione + checkout NuGet in file sorgente!!!
|
||||
bat "e:\\fart.exe ${WORKSPACE}\\INTERFACE\\VersGen\\VersGen.cs 0.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\INTERFACE\\WebLCP.sln"
|
||||
// CAMBIO numero versione
|
||||
bat "e:\\fart.exe VersGen\\VersGen.cs 0.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
// checkout NuGet in file sorgente!!!
|
||||
fixNuget("${WORKSPACE}\\INTERFACE\\WebLCP.sln")
|
||||
// bat "e:\\nuget setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-group"
|
||||
// bat "e:\\nuget sources Add -Name "Steamware Nexus" -Source http://nexus.steamware.net/repository/nuget-group"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\INTERFACE\\WebLCP.sln"
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
@@ -224,3 +228,10 @@ def sendSlack(status, colorCode) {
|
||||
"Modifiche:\n " + getChangeString() + "\n\n Verifica build: <${env.BUILD_URL}|Apri>" + "\n"
|
||||
)
|
||||
}
|
||||
|
||||
// funzione x fix pacchetti nuget da NOSTRO repo Nexus con proxy
|
||||
def fixNuget(solutionFile) {
|
||||
bat "e:\\nuget setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-group"
|
||||
bat "e:\\nuget sources Add -Name \"Steamware Nexus\" -Source http://nexus.steamware.net/repository/nuget-group"
|
||||
bat "e:\\nuget.exe restore ${solutionFile}"
|
||||
}
|
||||
Reference in New Issue
Block a user