From fd3e1545b333c0500bb32d5228f93b58e1d9ccdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Mon, 10 Feb 2025 02:01:34 +0800 Subject: [PATCH] feat(pipeline): add ProjectInitializer pipeline and update README for builtin pipelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- first-class-pipeline/pipeline/ProjectInitializer.jenkins | 6 ++++++ first-class-pipeline/pipeline/README.md | 5 +++++ first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 6 +----- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 first-class-pipeline/pipeline/ProjectInitializer.jenkins create mode 100644 first-class-pipeline/pipeline/README.md diff --git a/first-class-pipeline/pipeline/ProjectInitializer.jenkins b/first-class-pipeline/pipeline/ProjectInitializer.jenkins new file mode 100644 index 00000000..93cda1b9 --- /dev/null +++ b/first-class-pipeline/pipeline/ProjectInitializer.jenkins @@ -0,0 +1,6 @@ +pipeline { + agent any + parameters { + string(name: "Service Name") + } +} \ No newline at end of file diff --git a/first-class-pipeline/pipeline/README.md b/first-class-pipeline/pipeline/README.md new file mode 100644 index 00000000..3c53d4f7 --- /dev/null +++ b/first-class-pipeline/pipeline/README.md @@ -0,0 +1,5 @@ +# Builtin Pipelines + +## ProjectInitializer.jenkins + +Using to generate project specific pipeline based on `first-class-pipeline` shared library. diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index 9031d809..ba528725 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -379,11 +379,7 @@ def generateComponentStages(component, configurations) { privileged: true, ttyEnabled: true, command: 'sleep', - args: 'infinity', - volumeMounts: [ - // We need to mount the docker socket to the container to build the image when using dind as image builder - volumeMount(mountPath: '/var/run/docker.sock', name: 'docker-sock'), - ] + args: 'infinity' ) ], volumes: [