Implement Jenkinsfile
This commit is contained in:
parent
66d853d297
commit
f881b40910
1 changed files with 26 additions and 0 deletions
26
Jenkinsfile
vendored
Normal file
26
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
pipeline {
|
||||
agent any
|
||||
options {
|
||||
buildDiscarder {
|
||||
numToKeepStr: '5'
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ("Build Library") {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
steps {
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue