forked from Facepunch/Facepunch.Steamworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
26 lines (19 loc) · 925 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
node ( 'vs2017' )
{
stage 'Checkout'
checkout scm
stage 'Restore'
bat 'nuget restore Facepunch.Steamworks.sln'
stage 'Build Release'
bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.csproj /p:Configuration=Release /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}"
stage 'Build Debug'
bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.csproj /p:Configuration=Debug /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}"
stage 'Build Release NetCore'
bat "dotnet restore Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj"
stage 'Build Release NetCore'
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj --configuration Release"
stage 'Build Debug NetCore'
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj --configuration Debug"
stage 'Archive'
archiveArtifacts artifacts: 'Facepunch.Steamworks/bin/**/*'
}