This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dd.pipeline.yml
95 lines (92 loc) · 2.62 KB
/
dd.pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# ======================================================================================================================
# RESSOURCE TYPE
# ======================================================================================================================
resource_types:
- name: concourse-pipeline
type: docker-image
source:
repository: concourse/concourse-pipeline-resource
resources:
- name: git-demo
type: git
check_every: 30m
source:
uri: ssh://[email protected]:7999/my-company-digital/demo-application-java.git
private_key: ((git-key))
# Ressource GIT pour checkout le depot de resource infra
- name: git-concourse
type: git
source:
private_key: ((git-key))
uri: ssh://[email protected]:7999/my-company-digital/concourse.git
branch: feature/infra-multibranch
# Set Pipelines
- name: my-pipelines
type: concourse-pipeline
icon: pipe
source:
target: https://ci.cfzcea.dev.my-company.com
insecure: "false"
teams:
- name: my-company-digital-poc
password: ((concourse-basic-auth-password))
username: my-company-digital-poc
jobs:
- name: template
serial: true
public: false
plan:
- in_parallel:
- get: git-demo
- get: git-concourse
- task: maven-build
file: git-concourse/04_tasks/maven-build/maven-build.yml
input_mapping:
git: git-demo
- name: concourse-multi-branch
serial: true
public: false
plan:
- get: git-concourse
- get: my-pipelines
- task: scan-pipeline
config:
platform: linux
image_resource:
type: docker-image
source:
repository: emeraldsquad/cf-cli
inputs:
- name: my-pipelines
outputs:
- name: pipelines
run:
path: bash
args:
- -cxe
- |
set +x
pwd
ls -ltra
find .
mv ./my-pipelines/my-company-digital-poc-poc-infra-multibranch.yml pipelines/original_pipeline.yml
- task: infra-multibranch
file: git-concourse/04_tasks/infra-multibranch/infra-multibranch.yml
input_mapping:
pipelines: pipelines
output_mapping:
result: pipeline_generated
params:
COMPONENT_NAME: demo-application-java
PRODUCT_NAME: my-company-digital
- put: my-pipelines
params:
pipelines:
- name: my-pipeline
team: my-company-digital-poc
config_file: pipeline_generated/pipeline-generated.yml
groups:
- name: devops
jobs:
- concourse-multi-branch
- template