Fix jenkinsfile syntax
This commit is contained in:
parent
f881b40910
commit
c46d93c802
1 changed files with 15 additions and 8 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -1,9 +1,11 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
options {
|
options {
|
||||||
buildDiscarder {
|
buildDiscarder (
|
||||||
|
logRotator(
|
||||||
numToKeepStr: '5'
|
numToKeepStr: '5'
|
||||||
}
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -12,15 +14,20 @@ pipeline {
|
||||||
label 'linux'
|
label 'linux'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
sh '''
|
sh '''
|
||||||
dotnet restore
|
dotnet restore
|
||||||
dotnet publish LibAC.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true
|
dotnet publish LibAC.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
|
always {
|
||||||
archiveArtifacts artifacts: "build/Release/net8.0/LibAC.dll"
|
archiveArtifacts artifacts: "build/Release/net8.0/LibAC.dll"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue