Skip to content

Commit

Permalink
Merge pull request #37 from mat007/fix-cake-target-invocation
Browse files Browse the repository at this point in the history
Fix cake target invocation
  • Loading branch information
mat007 authored Jun 23, 2022
2 parents b3374ba + bfc0393 commit 445f101
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ pipeline {
stages {
stage('Build') {
steps {
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 -Target Build'
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 --target=Build'
}
}
stage('Test') {
steps {
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 -Target Test'
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 --target=Test'
}
}
stage('Nuget-pack') {
steps {
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src -e TAG_NAME mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 -Target Nuget-pack'
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src -e TAG_NAME mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 --target=Nuget-pack'
}
}
stage('Nuget-push') {
Expand All @@ -33,7 +33,7 @@ pipeline {
NugetAPIKey = credentials('nuget-api-key')
}
steps {
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src -e NugetAPIKey -e TAG_NAME mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 -Target Nuget-push'
bat 'docker run --rm -v %cd%:C:/work -w C:/work/src -e NugetAPIKey -e TAG_NAME mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 --target=Nuget-push'
}
}
}
Expand Down

0 comments on commit 445f101

Please sign in to comment.