directors-assistant/Jenkinsfile

25 lines
658 B
Plaintext
Raw Permalink Normal View History

pipeline {
agent any
tools {
2023-03-08 17:30:10 -05:00
dotnetsdk 'dotnet7'
}
stages {
stage('clean old'){
steps{
sh 'rm -rf bin obj'
}
}
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/*.*'
}
}
stage('windows') {
steps {
sh 'dotnet publish --configuration Release --os windows'
2023-03-08 17:30:10 -05:00
archiveArtifacts artifacts: 'bin/Release/net7.0/windows-x64/publish/*.*'
}
}
}
}