2022-11-30 16:30:11 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2022-12-14 18:02:14 -05:00
|
|
|
stage('clean old'){
|
|
|
|
steps{
|
|
|
|
sh 'rm -rf bin obj'
|
2023-12-03 22:09:29 -05:00
|
|
|
cleanWs()
|
2022-12-14 18:02:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('linux') {
|
|
|
|
steps {
|
|
|
|
sh 'dotnet publish --configuration Release --os linux'
|
2023-03-08 17:30:10 -05:00
|
|
|
archiveArtifacts artifacts: 'bin/Release/net7.0/linux-x64/publish/*.*'
|
2022-12-14 18:02:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('windows') {
|
2022-11-30 16:30:11 -05:00
|
|
|
steps {
|
2022-12-14 18:02:14 -05:00
|
|
|
sh 'dotnet publish --configuration Release --os windows'
|
2023-03-08 17:30:10 -05:00
|
|
|
archiveArtifacts artifacts: 'bin/Release/net7.0/windows-x64/publish/*.*'
|
2022-11-30 16:30:11 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|