provo a specificare packageversion...
This commit is contained in:
Vendored
+7
-3
@@ -53,14 +53,17 @@ pipeline {
|
||||
// calcolo il config...
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
env.config = "Debug"
|
||||
env.packVers=env.versionNumberBeta
|
||||
}
|
||||
else if (env.BRANCH_NAME == "master") {
|
||||
env.config = "Release"
|
||||
env.packVers=env.versionNumber
|
||||
}
|
||||
// procedo solo se NON si tratta di commit in ramo UnitTesting...
|
||||
if (env.BRANCH_NAME != "UnitTesting") {
|
||||
// CAMBIO numero versione + checkout NuGet in file sorgente!!!
|
||||
bat "e:\\fart.exe SteamWareLib\\SteamWare.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\fart.exe SteamWareLib\\SteamWare.csproj 1.0.0.0 ${env.packVers} || EXIT /B 0"
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\SteamWare.sln"
|
||||
// elimino vecchie build...
|
||||
bat "del /f /q *.nupkg"
|
||||
@@ -77,12 +80,13 @@ pipeline {
|
||||
// ora mi occupo delle operazioni di invio a NEXUS...
|
||||
script {
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
// sposto file...
|
||||
bat "cp SteamWare.${env.versionNumber}.nupkg SteamWare.${env.versionNumberBeta}.nupkg"
|
||||
// // sposto file...
|
||||
// bat "move SteamWare.${env.versionNumber}.nupkg SteamWare.${env.versionNumberBeta}.nupkg"
|
||||
// lancio upload con nuget!
|
||||
echo 'Start upload with nuget push'
|
||||
bat "e:\\nuget setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted"
|
||||
bat "e:\\nuget.exe push SteamWare.${env.versionNumberBeta}.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted"
|
||||
// bat "e:\\nuget.exe push SteamWare.${env.versionNumberBeta}.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted"
|
||||
bat "e:\\nuget.exe push SteamWare.${env.versionNumber}.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted"
|
||||
}
|
||||
else if (env.BRANCH_NAME == "master") {
|
||||
// lancio upload con nuget!
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<PackageVersion>1.0.0.0</PackageVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
|
||||
Reference in New Issue
Block a user