Commit refactoring
This commit is contained in:
parent
f735bce4e1
commit
d33d11123d
51 changed files with 348 additions and 18 deletions
56
Jenkinsfile
vendored
Normal file
56
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
pipeline {
|
||||
agent any
|
||||
options {
|
||||
buildDiscarder (
|
||||
logRotator(
|
||||
numToKeepStr: '5'
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("Build on Linux") {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
|
||||
steps {
|
||||
script {
|
||||
sh '''
|
||||
dotnet restore
|
||||
|
||||
dotnet publish ForgeCore.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "bin/Release/net8.0/publish/ForgeCore"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage("Build on Windows") {
|
||||
agent {
|
||||
label 'windows'
|
||||
}
|
||||
|
||||
steps {
|
||||
script {
|
||||
bat '''
|
||||
dotnet restore
|
||||
|
||||
dotnet publish ForgeCore.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts:"bin\\Release\\net8.0\\publish\\ForgeCore.exe"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue