feat(pipeline): add ProjectInitializer pipeline and update README for builtin pipelines
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
1335c9ec8d
commit
fd3e1545b3
6
first-class-pipeline/pipeline/ProjectInitializer.jenkins
Normal file
6
first-class-pipeline/pipeline/ProjectInitializer.jenkins
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
string(name: "Service Name")
|
||||||
|
}
|
||||||
|
}
|
||||||
5
first-class-pipeline/pipeline/README.md
Normal file
5
first-class-pipeline/pipeline/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Builtin Pipelines
|
||||||
|
|
||||||
|
## ProjectInitializer.jenkins
|
||||||
|
|
||||||
|
Using to generate project specific pipeline based on `first-class-pipeline` shared library.
|
||||||
@ -379,11 +379,7 @@ def generateComponentStages(component, configurations) {
|
|||||||
privileged: true,
|
privileged: true,
|
||||||
ttyEnabled: true,
|
ttyEnabled: true,
|
||||||
command: 'sleep',
|
command: 'sleep',
|
||||||
args: 'infinity',
|
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'),
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
volumes: [
|
volumes: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user