From 0ddb71006fc8254b6f231612be8ab9f9513f9363 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 21 Sep 2022 12:17:13 +0200 Subject: [PATCH] chore: add jenkins validation pipeline --- .jenkins/build-symfony-image.groovy | 15 +++++++++++++++ Jenkinsfile | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 .jenkins/build-symfony-image.groovy create mode 100644 Jenkinsfile diff --git a/.jenkins/build-symfony-image.groovy b/.jenkins/build-symfony-image.groovy new file mode 100644 index 0000000..475c76f --- /dev/null +++ b/.jenkins/build-symfony-image.groovy @@ -0,0 +1,15 @@ +def exec() { + String dockerfile = readFile(file:'Dockerfile') + + dockerfile = """ + ${dockerfile} + + RUN apt update && apt install -y php-gd php-curl php-zip curl + RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs + RUN npm install -g yarn + """.stripIndent() + + writeFile(file:'Dockerfile', text: dockerfile) +} + +return this diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6cf6995 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,3 @@ +@Library('cadoles') _ + +symfonyAppPipeline('ubuntu:22.04')