Skip to content

Commit

Permalink
[NCLSUP-720] Add option to set productManagers and productPagesCode w…
Browse files Browse the repository at this point in the history
…hen creating product
  • Loading branch information
jomrazek authored and thescouser89 committed Aug 16, 2022
1 parent ec7a77a commit d4f5ae3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example-pig-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
product:
name: ProductA # full product name
abbreviation: test # official product name abbreviation - used to create the brew/koji tag name
productManagers: managers # Managers of product
productPagesCode: code # Code for product pages
stage: Alpha1 # product phase, if we're targetting GA, should be GA, etc
issueTrackerUrl: http://issues.jboss.org/browse/TEST
version: {{version}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
public class ProductConfig {
private @NotBlank String name;
private @NotBlank String abbreviation;
private String productPagesCode;
private String productManagers;
private String stage;
private String issueTrackerUrl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ private Product generateProduct() {
Product product = Product.builder()
.name(productConfig.getName())
.abbreviation(productConfig.getAbbreviation())
.productManagers(productConfig.getProductManagers())
.productPagesCode(productConfig.getProductPagesCode())
.build();
try {
return productClient.createNew(product);
Expand Down

0 comments on commit d4f5ae3

Please sign in to comment.