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

14
Jenkinsfile vendored
View File

@ -8,35 +8,37 @@
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
checkout scm script {
checkout scm
}
} }
} }
stage('Restore Dependencies') { stage('Restore Dependencies') {
steps { steps {
script { script {
bat 'dotnet restore WheresMyMoney.sln' pwsh 'dotnet restore WheresMyMoney.sln'
} }
} }
} }
stage('Build Android') { stage('Build Android') {
steps { steps {
script { 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') { stage('Build Windows') {
steps { steps {
script { 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') { stage('Publish Artifacts') {
steps { steps {
script { script {
bat '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-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-windows10.0.19041.0 -o output\\windows'
} }
archiveArtifacts artifacts: 'output/**/*', allowEmptyArchive: true archiveArtifacts artifacts: 'output/**/*', allowEmptyArchive: true
} }