From d482c09e90ed2c43f8dad8ce6e0b0dd9009a87d9 Mon Sep 17 00:00:00 2001 From: nadir Date: Wed, 30 Sep 2026 14:50:01 +0000 Subject: [PATCH] =?UTF-8?q?Supprimer=20le=20r=C3=A9pertoire=20=C2=AB=C2=A0?= =?UTF-8?q?vars/(shared-library-repo)=C2=A0=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ └── vars/pythonBuildPipeline.groovy | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 vars/(shared-library-repo)/ └── vars/pythonBuildPipeline.groovy diff --git a/vars/(shared-library-repo)/ └── vars/pythonBuildPipeline.groovy b/vars/(shared-library-repo)/ └── vars/pythonBuildPipeline.groovy deleted file mode 100644 index 5838b82..0000000 --- a/vars/(shared-library-repo)/ └── vars/pythonBuildPipeline.groovy +++ /dev/null @@ -1,47 +0,0 @@ -def call(Map config = [:]) { - def pythonVersion = config.get('PYTHON_VERSION', '3.12-slim') - def environment = config.get('ENVIRONMENT', 'DEV') - - pipeline { - agent none - - parameters { - string(name: 'PYTHON_VERSION', defaultValue: pythonVersion, description: 'Version de l\'image Python') - choice(name: 'ENVIRONMENT', choices: ['DEV', 'PROD'], description: 'Environnement de déploiement') - } - - stages { - stage('Package') { - agent { - kubernetes { - yaml """ -apiVersion: v1 -kind: Pod -spec: - containers: - - name: build - image: python:${params.PYTHON_VERSION} - command: ["sleep"] - args: ["infinity"] - env: - - name: ENV_TYPE - value: "${params.ENVIRONMENT}" -""" - } - } - steps { - container('build') { - sh ''' - echo "Image Python utilisée : python:${PYTHON_VERSION}" - echo "Environnement ciblé : ${ENVIRONMENT}" - echo "Nom de l'hôte dans le pod : $(hostname)" - echo "webhook" - sleep 5 - echo "done" - ''' - } - } - } - } - } -} \ No newline at end of file