jenkins: make builds parallel

This commit is contained in:
2025-10-03 11:01:36 +02:00
parent ab5add947d
commit 6b99166501

52
Jenkinsfile vendored
View File

@@ -8,32 +8,36 @@ pipeline {
cron('H/10 * * * *') cron('H/10 * * * *')
} }
stages { stages {
stage('Android') { stage('Parallel Build and Deploy') {
stages { parallel {
stage('Build') { stage('Android') {
steps { stages {
sh 'devenv shell flutter build apk' stage('Build') {
steps {
sh 'devenv shell flutter build apk'
}
}
stage('Deploy') {
steps {
sh 'return 1'
}
}
} }
} }
stage('Deploy') { stage('Web') {
steps { stages {
sh 'return 1' stage('Build') {
} steps {
} sh 'devenv shell flutter build web --release'
} sh 'docker build -t harbor.julian-mutter.de/sheetless/sheetless-frontend .'
} }
stage('Web') { }
stages { stage('Deploy') {
stage('Build') { steps {
steps { withDockerRegistry([credentialsId: 'harbor-login-julian', url: 'https://harbor.julian-mutter.de']) {
sh 'devenv shell flutter build web --release' sh 'docker push harbor.julian-mutter.de/sheetless/sheetless-frontend'
sh 'docker build -t harbor.julian-mutter.de/sheetless/sheetless-frontend .' }
} }
}
stage('Deploy') {
steps {
withDockerRegistry([credentialsId: 'harbor-login-julian', url: 'https://harbor.julian-mutter.de']) {
sh 'docker push harbor.julian-mutter.de/sheetless/sheetless-frontend'
} }
} }
} }