rewrite php Jenkinsfile

This commit is contained in:
2020-04-05 22:28:06 -04:00
parent bf34d4a946
commit 997bbca2f5

View File

@@ -23,7 +23,7 @@ pipeline {
docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
customImage.inside() {
sh "php --version | grep 'PHP 7.1'"
sh "php --version | grep 'PHP 7.0'"
}
customImage.push()
}
@@ -48,6 +48,41 @@ pipeline {
}
}
}
stage ("php72") {
steps {
script {
def version = "7.2"
def dockerfile = "Dockerfile-72"
dir(workdir) {
docker.withRegistry('http://dkregistry.xai-corp.net:5000', 'b11d7f1a-81ac-4daf-8842-56afc0d2370e') {
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
customImage.inside() {
sh "php --version | grep 'PHP 7.2'"
}
customImage.push()
}
}
}
}
}
stage ("php72-dev") {
steps {
script {
def version = "7.2-dev"
def dockerfile = "Dockerfile-72-dev"
dir(workdir) {
docker.withRegistry('http://dkregistry.xai-corp.net:5000', 'b11d7f1a-81ac-4daf-8842-56afc0d2370e') {
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
customImage.inside() {
sh "php --version | grep 'PHP 7.2'"
sh "php --version | grep 'Xdebug'"
}
customImage.push()
}
}
}
}
}
}
}
}