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