Facepunch.Steamworks/Jenkinsfile

26 lines
925 B
Plaintext
Raw Normal View History

2017-05-09 22:43:46 +03:00
node ( 'vs2017' )
{
2017-03-16 15:32:00 +03:00
stage 'Checkout'
checkout scm
2017-04-05 19:08:39 +03:00
stage 'Restore'
2017-03-16 15:32:00 +03:00
bat 'nuget restore Facepunch.Steamworks.sln'
2017-04-05 19:08:39 +03:00
stage 'Build Release'
2017-03-16 15:32:00 +03:00
bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.csproj /p:Configuration=Release /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}"
2017-04-05 19:08:39 +03:00
stage 'Build Debug'
2017-03-16 15:32:00 +03:00
bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.csproj /p:Configuration=Debug /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}"
2017-04-05 19:08:39 +03:00
stage 'Build Release NetCore'
2017-04-05 21:09:49 +03:00
bat "dotnet restore Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj"
stage 'Build Release NetCore'
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj --configuration Release"
2017-04-05 19:08:39 +03:00
stage 'Build Debug NetCore'
2017-04-05 21:09:49 +03:00
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj --configuration Debug"
2017-03-16 15:32:00 +03:00
stage 'Archive'
2017-03-16 16:17:02 +03:00
archiveArtifacts artifacts: 'Facepunch.Steamworks/bin/**/*'
2017-03-16 15:32:00 +03:00
}