Fix jenkinsfile syntax

This commit is contained in:
zontreck 2024-12-16 21:05:01 -07:00
parent f881b40910
commit c46d93c802

23
Jenkinsfile vendored
View file

@ -1,9 +1,11 @@
pipeline { pipeline {
agent any agent any
options { options {
buildDiscarder { buildDiscarder (
numToKeepStr: '5' logRotator(
} numToKeepStr: '5'
)
)
} }
stages { stages {
@ -12,14 +14,19 @@ pipeline {
label 'linux' label 'linux'
} }
steps { steps {
sh ''' script {
dotnet restore sh '''
dotnet publish LibAC.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true dotnet restore
''' dotnet publish LibAC.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true
'''
}
} }
post { post {
archiveArtifacts artifacts: "build/Release/net8.0/LibAC.dll" always {
archiveArtifacts artifacts: "build/Release/net8.0/LibAC.dll"
}
} }
} }
} }