Fix Jenkinsfile
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit

This commit is contained in:
Michał Leśniak 2025-01-26 15:02:17 +01:00
parent 2d69a4b018
commit 36ca62f220

12
Jenkinsfile vendored
View File

@ -8,35 +8,37 @@
stages {
stage('Checkout') {
steps {
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
}