GameBundle/Jenkinsfile
2023-05-22 15:40:42 +02:00

31 lines
592 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'dotnet build **/GameBundle.csproj'
}
}
stage('Pack') {
steps {
sh 'find . -type f -name "*.nupkg" -delete'
sh 'dotnet pack **/GameBundle.csproj --version-suffix ${BUILD_NUMBER}'
}
}
stage('Publish') {
when {
branch 'main'
}
steps {
sh 'dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n'
}
}
}
environment {
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
}
}