Facepunch.Steamworks/Jenkinsfile

40 lines
2.1 KiB
Plaintext
Raw Normal View History

2017-05-09 22:43:46 +03:00
node ( 'vs2017' )
{
2019-06-25 17:03:21 +03:00
try
{
stage 'Checkout'
checkout scm
2017-03-16 15:32:00 +03:00
2019-06-25 17:03:21 +03:00
stage 'Restore'
bat "dotnet restore Facepunch.Steamworks/Facepunch.Steamworks.Win32.csproj"
bat "dotnet restore Facepunch.Steamworks/Facepunch.Steamworks.Win64.csproj"
2020-02-23 00:47:30 +03:00
bat "dotnet restore Facepunch.Steamworks/Facepunch.Steamworks.Posix.csproj"
2019-06-25 17:03:21 +03:00
stage 'Build Release'
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.Win32.csproj --configuration Release"
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.Win64.csproj --configuration Release"
2020-02-23 00:47:30 +03:00
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.Posix.csproj --configuration Release"
2019-06-25 17:03:21 +03:00
stage 'Build Debug'
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.Win32.csproj --configuration Debug"
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.Win64.csproj --configuration Debug"
2020-02-23 00:47:30 +03:00
bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.Posix.csproj --configuration Debug"
2017-03-16 15:32:00 +03:00
2019-06-25 17:03:21 +03:00
stage 'Archive'
archiveArtifacts artifacts: 'Facepunch.Steamworks/bin/**/*'
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Win32.dll UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Win32.pdb UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Win32.xml UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Win64.dll UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Win64.pdb UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Win64.xml UnityPlugin\\" )
2020-02-23 00:47:30 +03:00
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Posix.dll UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Posix.pdb UnityPlugin\\" )
bat( "copy /Y Facepunch.Steamworks\\bin\\Debug\\netstandard2.0\\Facepunch.Steamworks.Posix.xml UnityPlugin\\" )
2019-06-25 17:03:21 +03:00
archiveArtifacts artifacts: 'UnityPlugin/**/*'
}
finally
{
cleanWs()
}
2017-03-16 15:32:00 +03:00
}