2022-11-30 15:52:25 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-11-30 16:11:49 -05:00
|
|
|
tools {
|
2023-03-29 22:19:23 -04:00
|
|
|
dotnetsdk net7.0
|
2022-11-30 16:11:49 -05:00
|
|
|
}
|
2022-11-30 15:52:25 -05:00
|
|
|
stages {
|
2022-11-30 18:35:08 -05:00
|
|
|
stage('build franz') {
|
2022-11-30 15:52:25 -05:00
|
|
|
steps {
|
2022-11-30 18:35:08 -05:00
|
|
|
echo 'building franz'
|
2022-11-30 16:15:01 -05:00
|
|
|
sh 'dotnet pack franz/franz.csproj --configuration Release --output ./'
|
2022-11-30 15:52:25 -05:00
|
|
|
}
|
|
|
|
}
|
2022-11-30 18:35:08 -05:00
|
|
|
stage('deploy franz') {
|
2022-11-30 15:52:25 -05:00
|
|
|
steps {
|
2022-11-30 18:04:00 -05:00
|
|
|
sh 'dotnet nuget push ./*.nupkg --source gitea --skip-duplicate'
|
2022-11-30 15:52:25 -05:00
|
|
|
}
|
|
|
|
}
|
2022-11-30 18:35:08 -05:00
|
|
|
stage('build lister') {
|
|
|
|
steps {
|
|
|
|
echo 'franz'
|
|
|
|
sh 'dotnet publish topiclister/topiclister.csproj --configuration Release --output ./topiclister'
|
|
|
|
}
|
|
|
|
}
|
2022-11-30 15:52:25 -05:00
|
|
|
}
|
2023-03-29 22:02:52 -04:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
echo 'I will always say Hello again!'
|
|
|
|
}
|
|
|
|
}
|
2022-11-30 15:52:25 -05:00
|
|
|
}
|