jenkins: add android building

This commit is contained in:
2025-10-03 10:56:22 +02:00
parent 514739b6c2
commit ab5add947d

26
Jenkinsfile vendored
View File

@@ -8,17 +8,29 @@ pipeline {
cron('H/10 * * * *') cron('H/10 * * * *')
} }
stages { stages {
stage('Build Flutter') { stage('Android') {
stages {
stage('Build') {
steps {
sh 'devenv shell flutter build apk'
}
}
stage('Deploy') {
steps {
sh 'return 1'
}
}
}
}
stage('Web') {
stages {
stage('Build') {
steps { steps {
sh 'devenv shell flutter build web --release' sh 'devenv shell flutter build web --release'
}
}
stage('Build Docker') {
steps {
sh 'docker build -t harbor.julian-mutter.de/sheetless/sheetless-frontend .' sh 'docker build -t harbor.julian-mutter.de/sheetless/sheetless-frontend .'
} }
} }
stage('Deploy Docker') { stage('Deploy') {
steps { steps {
withDockerRegistry([credentialsId: 'harbor-login-julian', url: 'https://harbor.julian-mutter.de']) { withDockerRegistry([credentialsId: 'harbor-login-julian', url: 'https://harbor.julian-mutter.de']) {
sh 'docker push harbor.julian-mutter.de/sheetless/sheetless-frontend' sh 'docker push harbor.julian-mutter.de/sheetless/sheetless-frontend'
@@ -27,3 +39,5 @@ pipeline {
} }
} }
} }
}
}