LibZNI/Jenkinsfile

35 lines
No EOL
850 B
Groovy

pipeline {
agent any
options {
buildDiscarder (
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage ("Build Library") {
agent {
label 'linux'
}
steps {
script {
sh '''
dotnet restore
#dotnet publish LibAC.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true
dotnet build -c Release
'''
}
}
post {
always {
archiveArtifacts artifacts: "bin/Release/net8.0/LibAC.dll"
}
}
}
}
}