Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty authored May 22, 2021
1 parent 59dc47a commit 4a9c33a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ pipeline {
sh 'msbuild SCPDiscordPlugin/SCPDiscordPlugin.csproj -restore -p:PostBuildEvent='
}
}
stage('Bot') {
stage('Linux Bot') {
steps {
dir(path: 'SCPDiscordBot') {
sh 'dotnet build --output bin/ --configuration Release --runtime linux-x64'
sh 'warp-packer --arch linux-x64 --input_dir bin --exec SCPDiscordBot --output ../SCPDiscordBot'
sh 'dotnet build --output bin/linux-x64 --configuration Release --runtime linux-x64'
}
}
}
stage('Windows Bot') {
steps {
dir(path: 'SCPDiscordBot') {
sh 'dotnet build --output bin/win-x64 --configuration Release --runtime win-x64'
}
}
}
Expand All @@ -43,16 +49,14 @@ pipeline {
stage('Linux Bot') {
steps {
dir(path: 'SCPDiscordBot') {
sh 'dotnet build --output bin/linux-x64 --configuration Release --runtime linux-x64'
sh 'warp-packer --arch linux-x64 --input_dir bin/linux-x64 --exec SCPDiscordBot --output ../SCPDiscordBot'
sh 'warp-packer --arch linux-x64 --input_dir bin/linux-x64 --exec SCPDiscordBot --output ../SCPDiscord/Bot/SCPDiscordBot'
}
}
}
stage('Windows Bot') {
steps {
dir(path: 'SCPDiscordBot') {
sh 'dotnet build --output bin/win-x64 --configuration Release --runtime win-x64'
sh 'warp-packer --arch windows-x64 --input_dir bin/win-x64 --exec SCPDiscordBot.exe --output ../SCPDiscordBot.exe'
sh 'warp-packer --arch windows-x64 --input_dir bin/win-x64 --exec SCPDiscordBot.exe --output ../SCPDiscord/Bot/SCPDiscordBot.exe'
}
}
}
Expand Down

0 comments on commit 4a9c33a

Please sign in to comment.