Version 1.0.3
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
- Modify planned payment - minor bug fixes
This commit is contained in:
50
Jenkinsfile
vendored
Normal file
50
Jenkinsfile
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
pipeline {
|
||||
agent { label 'Kapitan-PC' }
|
||||
environment {
|
||||
ANDROID_HOME = 'C:\\Users\\lemi4\\AppData\\Local\\Android\\sdk'
|
||||
DOTNET_ROOT = 'C:\\Program Files\\dotnet'
|
||||
PATH = "${env.PATH};${env.ANDROID_HOME}\\tools;${env.ANDROID_HOME}\\platform-tools;${env.DOTNET_ROOT}"
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Restore Dependencies') {
|
||||
steps {
|
||||
script {
|
||||
bat 'dotnet restore WheresMyMoney.sln'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build Android') {
|
||||
steps {
|
||||
script {
|
||||
bat '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'
|
||||
}
|
||||
}
|
||||
}
|
||||
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'
|
||||
}
|
||||
archiveArtifacts artifacts: 'output/**/*', allowEmptyArchive: true
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user