More parallelism
All checks were successful
gitea/evodocker/pipeline/head This commit looks good

This commit is contained in:
Ludovic Poujol 2024-04-26 16:54:59 +02:00
parent ead308856f
commit 68cb12a5a3
Signed by: lpoujol
SSH key fingerprint: SHA256:YZbQWfjHONnvIGkFZMs0xRKtqzqGqwtZU+kCOKhZXPA

View file

@ -210,24 +210,26 @@ pipeline {
parallel {
stage('Build redis > Stretch') {
steps {
script {
def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "redis/stretch")
deb.inside {
sh 'echo Test needed'
}
if(env.BRANCH_NAME == "master") {
// docker.withRegistry('', 'hub.docker') {
// deb.push('strech')
// deb.push('latest')
// }
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push('strech')
deb.push('latest')
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
script {
def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "redis/stretch")
deb.inside {
sh 'echo Test needed'
}
}
else {
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push("strech-branch_${env.BRANCH_NAME}")
if(env.BRANCH_NAME == "master") {
// docker.withRegistry('', 'hub.docker') {
// deb.push('strech')
// deb.push('latest')
// }
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push('strech')
deb.push('latest')
}
}
else {
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push("strech-branch_${env.BRANCH_NAME}")
}
}
}
}
@ -236,24 +238,26 @@ pipeline {
stage('Build redis > Buster') {
steps {
script {
def deb = docker.build("evolix/redis:deb10build${env.BUILD_ID}", "redis/buster")
deb.inside {
sh 'echo Test needed'
}
if(env.BRANCH_NAME == "master") {
// docker.withRegistry('', 'hub.docker') {
// deb.push('buster')
// deb.push('latest')
// }
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push('buster')
deb.push('latest')
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
script {
def deb = docker.build("evolix/redis:deb10build${env.BUILD_ID}", "redis/buster")
deb.inside {
sh 'echo Test needed'
}
}
else {
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push("buster-branch_${env.BRANCH_NAME}")
if(env.BRANCH_NAME == "master") {
// docker.withRegistry('', 'hub.docker') {
// deb.push('buster')
// deb.push('latest')
// }
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push('buster')
deb.push('latest')
}
}
else {
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
deb.push("buster-branch_${env.BRANCH_NAME}")
}
}
}
}
@ -262,108 +266,115 @@ pipeline {
}
}
stage('Build php') {
steps {
script {
def deb = docker.build("evolix/php:build${env.BUILD_ID}", "-f php/Dockerfile php")
deb.inside {
sh 'composer --version'
parallel {
stage('Build php') {
steps {
script {
def deb = docker.build("evolix/php:build${env.BUILD_ID}", "-f php/Dockerfile php")
deb.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb.push('latest')
// }
}
}
}
stage('Build php (Jessie)') {
steps {
script {
def deb8 = docker.build("evolix/php:deb8build${env.BUILD_ID}", "-f php/Dockerfile.jessie php")
deb8.inside {
sh 'echo Test needed'
}
// docker.withRegistry('', 'hub.docker') {
// deb8.push('jessie')
// deb8.push('5.6')
// }
}
}
}
stage('Build php (Stretch)') {
steps {
script {
def deb9 = docker.build("evolix/php:deb9build${env.BUILD_ID}", "-f php/Dockerfile.stretch php")
deb9.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb9.push('stretch')
// deb9.push('7.0')
// }
}
}
}
stage('Build php (Buster)') {
steps {
script {
def deb10 = docker.build("evolix/php:deb10build${env.BUILD_ID}", "-f php/Dockerfile.buster php")
deb10.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb10.push('buster')
// deb10.push('7.3')
// }
}
}
}
stage('Build php (Bullseye)') {
steps {
script {
def deb11 = docker.build("evolix/php:deb11build${env.BUILD_ID}", "-f php/Dockerfile.bullseye php")
deb11.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb11.push('bullseye')
// deb11.push('7.4')
// }
}
}
}
stage('Build php (Bullseye PHP 8.0)') {
steps {
script {
def deb11php80 = docker.build("evolix/php:deb11php80build${env.BUILD_ID}", "-f php/Dockerfile.bullseye80 php")
deb11php80.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb11php80.push('bullseye80')
// deb11php80.push('8.0')
// }
}
}
}
stage('Build php (Bullseye PHP 8.1)') {
steps {
script {
def deb11php81 = docker.build("evolix/php:deb11php81build${env.BUILD_ID}", "-f php/Dockerfile.bullseye81 php")
deb11php81.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb11php81.push('bullseye81')
// deb11php81.push('8.1')
// }
}
}
// docker.withRegistry('', 'hub.docker') {
// deb.push('latest')
// }
}
}
}
stage('Build php (Jessie)') {
steps {
script {
def deb8 = docker.build("evolix/php:deb8build${env.BUILD_ID}", "-f php/Dockerfile.jessie php")
deb8.inside {
sh 'echo Test needed'
}
// docker.withRegistry('', 'hub.docker') {
// deb8.push('jessie')
// deb8.push('5.6')
// }
}
}
}
stage('Build php (Stretch)') {
steps {
script {
def deb9 = docker.build("evolix/php:deb9build${env.BUILD_ID}", "-f php/Dockerfile.stretch php")
deb9.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb9.push('stretch')
// deb9.push('7.0')
// }
}
}
}
stage('Build php (Buster)') {
steps {
script {
def deb10 = docker.build("evolix/php:deb10build${env.BUILD_ID}", "-f php/Dockerfile.buster php")
deb10.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb10.push('buster')
// deb10.push('7.3')
// }
}
}
}
stage('Build php (Bullseye)') {
steps {
script {
def deb11 = docker.build("evolix/php:deb11build${env.BUILD_ID}", "-f php/Dockerfile.bullseye php")
deb11.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb11.push('bullseye')
// deb11.push('7.4')
// }
}
}
}
stage('Build php (Bullseye PHP 8.0)') {
steps {
script {
def deb11php80 = docker.build("evolix/php:deb11php80build${env.BUILD_ID}", "-f php/Dockerfile.bullseye80 php")
deb11php80.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb11php80.push('bullseye80')
// deb11php80.push('8.0')
// }
}
}
}
stage('Build php (Bullseye PHP 8.1)') {
steps {
script {
def deb11php81 = docker.build("evolix/php:deb11php81build${env.BUILD_ID}", "-f php/Dockerfile.bullseye81 php")
deb11php81.inside {
sh 'composer --version'
}
// docker.withRegistry('', 'hub.docker') {
// deb11php81.push('bullseye81')
// deb11php81.push('8.1')
// }
}
}
}
}
}