jenkins: make builds parallel
This commit is contained in:
52
Jenkinsfile
vendored
52
Jenkinsfile
vendored
@@ -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'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user