2022-11-30 15:52:25 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-11-30 16:11:49 -05:00
|
|
|
tools {
|
2022-11-30 16:13:16 -05:00
|
|
|
dotnetsdk 'dotnet6'
|
2022-11-30 16:11:49 -05:00
|
|
|
}
|
2022-11-30 15:52:25 -05:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building..'
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|