directors-assistant/Jenkinsfile
Adam R Grey 6a7ddcd45d jenkinsfix?
boy good thing it's in the cloud, makes it a god damn pain in the ass
2022-12-14 18:06:25 -05:00

25 lines
658 B
Groovy

pipeline {
agent any
tools {
dotnetsdk 'dotnet6'
}
stages {
stage('clean old'){
steps{
sh 'rm -rf bin obj'
}
}
stage('linux') {
steps {
sh 'dotnet publish --configuration Release --os linux'
archiveArtifacts artifacts: 'bin/Release/net6.0/linux-x64/publish/*.*'
}
}
stage('windows') {
steps {
sh 'dotnet publish --configuration Release --os windows'
archiveArtifacts artifacts: 'bin/Release/net6.0/windows-x64/publish/*.*'
}
}
}
}