fix: branch tracker pipeline
This commit is contained in:
parent
59d2d26984
commit
a52d13e1a0
2 changed files with 48 additions and 48 deletions
|
@ -1,42 +1,42 @@
|
||||||
---
|
---
|
||||||
resource_types:
|
resource_types:
|
||||||
- name: git-branches
|
- name: git-branches
|
||||||
type: registry-image
|
type: registry-image
|
||||||
source:
|
source:
|
||||||
repository: aoldershaw/git-branches-resource
|
repository: aoldershaw/git-branches-resource
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- name: feature-branches
|
- name: feature-branches
|
||||||
type: git-branches
|
type: git-branches
|
||||||
source:
|
source:
|
||||||
uri: https://code.icb4dc0.de/prskr/nurse.git
|
uri: https://code.icb4dc0.de/prskr/nurse.git
|
||||||
# The "(?P<name>pattern)" syntax defines a named capture group.
|
# The "(?P<name>pattern)" syntax defines a named capture group.
|
||||||
# aoldershaw/git-branches-resource emits the value of each named capture
|
# aoldershaw/git-branches-resource emits the value of each named capture
|
||||||
# group under the `groups` key.
|
# group under the `groups` key.
|
||||||
#
|
#
|
||||||
# e.g. feature/some-feature ==> {"groups": {"feature": "some-feature"}}
|
# e.g. feature/some-feature ==> {"groups": {"feature": "some-feature"}}
|
||||||
branch_regex: '(\d+-|\w+\/|\w+\(\w+\):\s*)(?P<feature>.*)'
|
branch_regex: '(\d+-|\w+\/)(?P<feature>.*)'
|
||||||
|
|
||||||
- name: nurse.git
|
- name: nurse.git
|
||||||
type: git
|
type: git
|
||||||
icon: github
|
icon: github
|
||||||
source:
|
source:
|
||||||
uri: https://code.icb4dc0.de/prskr/nurse.git
|
uri: https://code.icb4dc0.de/prskr/nurse.git
|
||||||
fetch_tags: true
|
fetch_tags: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: set-feature-pipelines
|
- name: set-feature-pipelines
|
||||||
plan:
|
plan:
|
||||||
- in_parallel:
|
- in_parallel:
|
||||||
- get: feature-branches
|
- get: feature-branches
|
||||||
trigger: true
|
trigger: true
|
||||||
- get: nurse.git
|
- get: nurse.git
|
||||||
- load_var: branches
|
- load_var: branches
|
||||||
file: feature-branches/branches.json
|
file: feature-branches/branches.json
|
||||||
- across:
|
- across:
|
||||||
- var: branch
|
- var: branch
|
||||||
values: ((.:branches))
|
values: ((.:branches))
|
||||||
set_pipeline: nurse-dev
|
set_pipeline: dev
|
||||||
file: nurse.git/.concourse/branch-validate.yml
|
file: nurse.git/.concourse/branch-validate.yml
|
||||||
instance_vars: {feature: ((.:branch.groups.feature))}
|
instance_vars: {feature: ((.:branch.groups.feature))}
|
||||||
vars: {branch: ((.:branch.name))}
|
vars: {branch: ((.:branch.name))}
|
|
@ -1,17 +1,17 @@
|
||||||
---
|
---
|
||||||
resources:
|
resources:
|
||||||
- name: nurse.git
|
- name: nurse.git
|
||||||
type: git
|
type: git
|
||||||
icon: github
|
icon: github
|
||||||
source:
|
source:
|
||||||
uri: https://code.icb4dc0.de/prskr/nurse.git
|
uri: https://code.icb4dc0.de/prskr/nurse.git
|
||||||
branch: ((branch))
|
branch: ((branch))
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: lint
|
- name: lint
|
||||||
plan:
|
plan:
|
||||||
- get: nurse.git
|
- get: nurse.git
|
||||||
trigger: true
|
trigger: true
|
||||||
- task: lint
|
- task: lint
|
||||||
file: nurse.git/.concourse/tasks/lint.yml
|
file: nurse.git/.concourse/tasks/lint.yml
|
||||||
input_mapping: {repo: nurse.git}
|
input_mapping: {repo: nurse.git}
|
Loading…
Reference in a new issue