Only publish on master

This commit is contained in:
Ell 2021-01-01 11:10:35 +01:00 committed by GitHub
parent 1fec29dc63
commit ca434b2324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
Jenkinsfile vendored
View file

@ -15,9 +15,11 @@ pipeline {
} }
stage('Publish') { stage('Publish') {
when {
branch 'master'
}
steps { steps {
sh '''dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true sh 'dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true'
'''
} }
} }
@ -25,4 +27,4 @@ pipeline {
environment { environment {
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676') BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
} }
} }