GameBundle/Jenkinsfile

31 lines
592 B
Plaintext
Raw Normal View History

2020-04-09 18:37:12 +02:00
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'dotnet build **/GameBundle.csproj'
}
}
stage('Pack') {
steps {
2023-05-22 15:40:42 +02:00
sh 'find . -type f -name "*.nupkg" -delete'
2020-04-09 18:37:12 +02:00
sh 'dotnet pack **/GameBundle.csproj --version-suffix ${BUILD_NUMBER}'
}
}
stage('Publish') {
2020-04-10 03:58:05 +02:00
when {
2021-10-24 00:46:49 +02:00
branch 'main'
2020-04-10 03:58:05 +02:00
}
2020-04-09 18:37:12 +02:00
steps {
2023-05-22 15:40:42 +02:00
sh 'dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n'
2020-04-09 18:37:12 +02:00
}
}
}
environment {
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
}
2020-04-10 03:58:05 +02:00
}