diff --git a/Jenkinsfile b/Jenkinsfile index 281b1c1..2eeefc2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,35 +8,37 @@ stages { stage('Checkout') { steps { - checkout scm + script { + checkout scm + } } } stage('Restore Dependencies') { steps { script { - bat 'dotnet restore WheresMyMoney.sln' + pwsh 'dotnet restore WheresMyMoney.sln' } } } stage('Build Android') { steps { script { - bat 'dotnet build WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-android' + pwsh 'dotnet build WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-android' } } } stage('Build Windows') { steps { script { - bat 'dotnet build WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-windows10.0.19041.0' + pwsh 'dotnet build WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-windows10.0.19041.0' } } } stage('Publish Artifacts') { steps { script { - bat 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-android -o output\\android' - bat 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-windows10.0.19041.0 -o output\\windows' + pwsh 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-android -o output\\android' + pwsh 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-windows10.0.19041.0 -o output\\windows' } archiveArtifacts artifacts: 'output/**/*', allowEmptyArchive: true }