Skip to content

Commit

Permalink
EDPC-2544 Remove obsolete branch param from release-manager starter. (#…
Browse files Browse the repository at this point in the history
…1058)

EDPC-2544 Remove obsolete branch param from release-manager quickstarter.

---------

Co-authored-by: zxBCN Valeriu_Tuguran,Constantin (IT EDP) EXTERNAL <[email protected]>
  • Loading branch information
valituguran and zxBCN Valeriu_Tuguran,Constantin (IT EDP) EXTERNAL authored Sep 17, 2024
1 parent 9d61013 commit a4066cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Remove obsolete branch parameter from release-manager ([#1058](https://github.com/opendevstack/ods-quickstarters/pull/1058))
- Update OS packages by default and bump gitleaks version ([#1049](https://github.com/opendevstack/ods-quickstarters/issues/1049))
- Install java 17 devel only in scala and jdk agents ([#1057](https://github.com/opendevstack/ods-quickstarters/pull/1057))
- Update Angular, Ionic and Typescript Quickstarters ([#1033](https://github.com/opendevstack/ods-quickstarters/issues/1033))
Expand Down
8 changes: 2 additions & 6 deletions docs/modules/quickstarters/pages/release-manager.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ name: Project Phoenix
repositories:
- id: A
branch: master
- id: B
name: my-repo-B
branch: master
- id: C
----

For all repositories mentioned above (A, B, C) the library will resolve the default branch configured in each.
If a named repository wants to announce a dependency on another repo, the dependency needs to be listed in that repository's `release-manager.yml`, simply by referring to its `repo.id` as defined in `metadata.yml`:

----
Expand All @@ -47,11 +46,9 @@ name: Project Phoenix
repositories:
- id: A
branch: master
type: ods
- id: B
name: my-repo-B
branch: master
type: ods
- id: C
type: ods
Expand Down Expand Up @@ -85,7 +82,6 @@ name: Project Phoenix
repositories:
- id: B
name: my-repo-B
branch: master
----

Assuming your release manager component's origin at `https://github.com/my-org/my-pipeline.git` in this example, the Git URL for repository `B` will resolve to `https://github.com/my-org/my-repo-B.git`, based on the value in `repositories[0].name`.
Expand All @@ -104,7 +100,7 @@ Assuming your release manager component's origin at `https://github.com/my-org/m

=== Automated Resolution of Repository Branch

If no `branch` parameter is provided for a repository, `master` will be assumed.
The default branch configured for the repository will be considered.

=== Automated Parallelization of Repositories

Expand Down
7 changes: 1 addition & 6 deletions release-manager/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ name: Project Phoenix
repositories:
- id: A
branch: master
- id: B
name: my-repo-B
branch: master
- id: C
```

For all repositories mentioned above (A, B, C) the library will resolve the default branch configured in each.
If a named repository wants to announce a dependency on another repo, the dependency needs to be listed in that repository's `release-manager.yml`, simply by referring to its `repo.id` as defined in `metadata.yml`:

```
Expand All @@ -46,11 +44,9 @@ name: Project Phoenix
repositories:
- id: A
branch: master
type: ods
- id: B
name: my-repo-B
branch: master
type: ods
- id: C
type: ods
Expand Down Expand Up @@ -98,7 +94,6 @@ name: Project Phoenix
repositories:
- id: B
name: my-repo-B
branch: master
```

Assuming your release manager component's origin at `https://github.com/my-org/my-pipeline.git` in this example, the Git URL for repository `B` will resolve to `https://github.com/my-org/my-repo-B.git`, based on the value in `repositories[0].name`.
Expand Down
2 changes: 0 additions & 2 deletions release-manager/metadata.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ services:

repositories: []
# - id: A
# branch: master
# type: ods
# - id: B
# name: my-repo-B
# branch: master
# type: ods
# - id: C
# type: ods
Expand Down

0 comments on commit a4066cc

Please sign in to comment.