From f3f7bb32fd1bd33287a8fdbc39e76898850a14ac Mon Sep 17 00:00:00 2001 From: David Prevot Date: Fri, 29 Apr 2022 14:59:40 +0200 Subject: [PATCH] Jenkins: Convert .drone.yml to .Jenkinsfile --- .Jenkinsfile | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 .Jenkinsfile diff --git a/.Jenkinsfile b/.Jenkinsfile new file mode 100644 index 0000000..dec521d --- /dev/null +++ b/.Jenkinsfile @@ -0,0 +1,223 @@ +pipeline { + agent any + + stages { + stage('Build gbp') { + steps { + script { + def deb = docker.build("evolix/gbp:build${env.BUILD_ID}", "gbp") + deb.inside { + sh 'gbp --version' + } + /* No crendentials yet + deb.push('latest') + */ + } + } + } + + stage('Build shellcheck') { + steps { + script { + def deb = docker.build("evolix/shellcheck:build${env.BUILD_ID}", "shellcheck") + deb.inside { + sh 'echo Test needed' + } + /* No crendentials yet + deb.push('latest') + */ + } + } + } + + stage('Build phpcs') { + steps { + script { + def deb = docker.build("evolix/phpcs:build${env.BUILD_ID}", "phpcs") + deb.inside { + sh 'echo Test needed' + } + /* No crendentials yet + deb.push('latest') + */ + } + } + } + + stage('Build apache2-php (Stretch)') { + steps { + script { + def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "-f apache2-php/stretch/Dockerfile .") + deb.inside { + sh 'echo Test needed' + } + /* No crendentials yet + deb.push('stretch') + */ + } + } + } + + stage('Build apache2-php (Buster)') { + steps { + script { + def deb = docker.build("evolix/apache2-php:deb10build${env.BUILD_ID}", "-f apache2-php/buster/Dockerfile .") + deb.inside { + sh 'echo Test needed' + } + /* No crendentials yet + deb.push('buster') + deb.push('latest') + */ + } + } + } + + stage('Build redis (Stretch)') { + steps { + script { + def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "redis/stretch") + deb.inside { + sh 'echo Test needed' + } + /* No crendentials yet + deb.push('stretch') + */ + } + } + } + + stage('Build redis (Buster)') { + steps { + script { + def deb = docker.build("evolix/redis:deb10build${env.BUILD_ID}", "redis/buster") + deb.inside { + sh 'echo Test needed' + } + /* No crendentials yet + deb.push('buster') + deb.push('latest') + */ + } + } + } + + stage('Build php') { + steps { + script { + def deb = docker.build("evolix/php:build${env.BUILD_ID}", "-f php/Dockerfile php") + deb.inside { + sh 'composer --version' + } + /* No crendentials yet + 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 'composer --version' + } + /* No crendentials yet + deb9.push('jessie') + deb9.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' + } + /* No crendentials yet + deb9.push('stretch') + deb9.push('7.0') + */ + } + } + } + + stage('Build php (Stretch PHP 7.2)') { + steps { + script { + def deb9php72 = docker.build("evolix/php:deb9php72build${env.BUILD_ID}", "-f php/Dockerfile.stretch72 php") + deb9php72.inside { + sh 'composer --version' + } + /* No crendentials yet + deb9php72.push('stretch72') + deb9php72.push('7.2') + */ + } + } + } + + stage('Build php (Stretch PHP 7.3)') { + steps { + script { + def deb9php73 = docker.build("evolix/php:deb9php73build${env.BUILD_ID}", "-f php/Dockerfile.stretch73 php") + deb9php73.inside { + sh 'composer --version' + } + /* No crendentials yet + deb9php73.push('stretch73') + */ + } + } + } + + 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' + } + /* No crendentials yet + 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' + } + /* No crendentials yet + 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' + } + /* No crendentials yet + deb11php80.push('bullseye80') + deb11php80.push('8.0') + */ + } + } + } + } +}