jenkins: make builds parallel
This commit is contained in:
52
Jenkinsfile
vendored
52
Jenkinsfile
vendored
@@ -8,32 +8,36 @@ pipeline {
|
||||
cron('H/10 * * * *')
|
||||
}
|
||||
stages {
|
||||
stage('Android') {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'devenv shell flutter build apk'
|
||||
stage('Parallel Build and Deploy') {
|
||||
parallel {
|
||||
stage('Android') {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'devenv shell flutter build apk'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh 'return 1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh 'return 1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Web') {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'devenv shell flutter build web --release'
|
||||
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'
|
||||
stage('Web') {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'devenv shell flutter build web --release'
|
||||
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