This commit is contained in:
parent
3c88061401
commit
ead308856f
49
.Jenkinsfile
49
.Jenkinsfile
|
@ -94,8 +94,9 @@ pipeline {
|
||||||
|
|
||||||
stage('Build apache2-php') {
|
stage('Build apache2-php') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Build apache2-php (Stretch)') {
|
stage('Build apache2-php > Stretch') {
|
||||||
steps {
|
steps {
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
script {
|
script {
|
||||||
def deb = docker.build("evolix/apache2-php:deb9build${env.BUILD_ID}", "apache2-php/stretch/")
|
def deb = docker.build("evolix/apache2-php:deb9build${env.BUILD_ID}", "apache2-php/stretch/")
|
||||||
deb.inside {
|
deb.inside {
|
||||||
|
@ -117,9 +118,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build apache2-php (Buster)') {
|
stage('Build apache2-php > Buster') {
|
||||||
steps {
|
steps {
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
script {
|
script {
|
||||||
def deb = docker.build("evolix/apache2-php:deb10build${env.BUILD_ID}", "apache2-php/buster/")
|
def deb = docker.build("evolix/apache2-php:deb10build${env.BUILD_ID}", "apache2-php/buster/")
|
||||||
deb.inside {
|
deb.inside {
|
||||||
|
@ -142,8 +145,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build apache2-php (Bullseye)') {
|
}
|
||||||
|
stage('Build apache2-php > Bullseye') {
|
||||||
steps {
|
steps {
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
script {
|
script {
|
||||||
def deb = docker.build("evolix/apache2-php:deb11build${env.BUILD_ID}", "./apache2-php/bullseye")
|
def deb = docker.build("evolix/apache2-php:deb11build${env.BUILD_ID}", "./apache2-php/bullseye")
|
||||||
deb.inside {
|
deb.inside {
|
||||||
|
@ -166,9 +171,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build apache2-php ') {
|
stage('Build apache2-php > Bookworm') {
|
||||||
steps {
|
steps {
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
script {
|
script {
|
||||||
def deb = docker.build("evolix/apache2-php:deb12build${env.BUILD_ID}", "./apache2-php/bookworm")
|
def deb = docker.build("evolix/apache2-php:deb12build${env.BUILD_ID}", "./apache2-php/bookworm")
|
||||||
deb.inside {
|
deb.inside {
|
||||||
|
@ -195,34 +202,62 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
stage('Build redis (Stretch)') {
|
stage('Build redis') {
|
||||||
|
parallel {
|
||||||
|
stage('Build redis > Stretch') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "redis/stretch")
|
def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "redis/stretch")
|
||||||
deb.inside {
|
deb.inside {
|
||||||
sh 'echo Test needed'
|
sh 'echo Test needed'
|
||||||
}
|
}
|
||||||
|
if(env.BRANCH_NAME == "master") {
|
||||||
// docker.withRegistry('', 'hub.docker') {
|
// docker.withRegistry('', 'hub.docker') {
|
||||||
// deb.push('stretch')
|
// 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}")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build redis (Buster)') {
|
stage('Build redis > Buster') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def deb = docker.build("evolix/redis:deb10build${env.BUILD_ID}", "redis/buster")
|
def deb = docker.build("evolix/redis:deb10build${env.BUILD_ID}", "redis/buster")
|
||||||
deb.inside {
|
deb.inside {
|
||||||
sh 'echo Test needed'
|
sh 'echo Test needed'
|
||||||
}
|
}
|
||||||
|
if(env.BRANCH_NAME == "master") {
|
||||||
// docker.withRegistry('', 'hub.docker') {
|
// docker.withRegistry('', 'hub.docker') {
|
||||||
// deb.push('buster')
|
// deb.push('buster')
|
||||||
// deb.push('latest')
|
// 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}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue