Initial Commit
SuccessfulCode/BritishHorseRacingApi/master There was a failure building this commit

This commit is contained in:
2020-02-22 22:02:44 +00:00
parent 1079ad1e84
commit 6d073c35a5
39 changed files with 1290 additions and 0 deletions
Vendored
+37
View File
@@ -0,0 +1,37 @@
pipeline
{
agent { dockerfile true }
stages
{
stage('Build')
{
steps
{
sh 'dotnet restore'
sh 'dotnet build -c Release --no-restore'
sh "dotnet pack -c Release --no-restore --no-build -p:PackageVersion=1.0.${env.BUILD_NUMBER}"
}
}
stage('Archive artifacts')
{
steps
{
archiveArtifacts artifacts:'*/bin/Release/**/*.nupkg'
}
}
stage('Publish nuget artifacts')
{
steps
{
sh "./JenkinsfileScripts/PublishNugetArtifacts.sh ${env.BUILD_NUMBER}"
}
}
}
post {
always {
deleteDir() /* clean up our workspace */
}
}
}