fix conf nexus
This commit is contained in:
Vendored
+5
-5
@@ -102,7 +102,7 @@ pipeline {
|
||||
// ora mi occupo delle operazioni di invio a NEXUS...
|
||||
nexusArtifactUploader(
|
||||
nexusVersion: 'nexus3',
|
||||
protocol: 'http',
|
||||
protocol: 'https',
|
||||
nexusUrl: 'nexus.steamware.net',
|
||||
groupId: 'MAPO',
|
||||
//version: "${env.versionNumber}",
|
||||
@@ -142,7 +142,7 @@ pipeline {
|
||||
// ora mi occupo delle operazioni di invio a NEXUS...
|
||||
nexusArtifactUploader(
|
||||
nexusVersion: 'nexus3',
|
||||
protocol: 'http',
|
||||
protocol: 'https',
|
||||
nexusUrl: 'nexus.steamware.net',
|
||||
groupId: 'MAPO',
|
||||
//version: "${env.versionNumber}",
|
||||
@@ -250,16 +250,16 @@ def sendSlack(status, colorCode) {
|
||||
}
|
||||
// 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 setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-group"
|
||||
// solo la prima volta va aggiunta...
|
||||
hasSource = bat "e:\\nuget sources list | find \"Steamware\" /C"
|
||||
if (hasSource == "0")
|
||||
{
|
||||
bat "e:\\nuget sources Add -Name \"Steamware Nexus\" -Source http://nexus.steamware.net/repository/nuget-group -username \"nugetUser\" -password \"viaDante16\""
|
||||
bat "e:\\nuget sources Add -Name \"Steamware Nexus\" -Source https://nexus.steamware.net/repository/nuget-group -username \"nugetUser\" -password \"viaDante16\""
|
||||
}
|
||||
else
|
||||
{
|
||||
bat "e:\\nuget sources Update -Name \"Steamware Nexus\" -Source http://nexus.steamware.net/repository/nuget-group -username \"nugetUser\" -password \"viaDante16\""
|
||||
bat "e:\\nuget sources Update -Name \"Steamware Nexus\" -Source https://nexus.steamware.net/repository/nuget-group -username \"nugetUser\" -password \"viaDante16\""
|
||||
}
|
||||
bat "e:\\nuget.exe restore ${solutionFile}"
|
||||
}
|
||||
Reference in New Issue
Block a user