Fix Jenkinsfile
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2d69a4b018
commit
36ca62f220
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user