Skip to content

Commit

Permalink
Add field to code component to specify image build job URL (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed May 2, 2024
1 parent cb4ca37 commit d2475a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions graphql-schemas/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2733,6 +2733,7 @@ confs:
- { name: gitlabHousekeeping, type: CodeComponentGitlabHousekeeping_v1 }
- { name: jira, type: JiraServer_v1 }
- { name: mirror, type: string }
- { name: imageBuildUrl, type: string }

- name: Product_v1
datafile: /app-sre/product-1.yml
Expand Down
17 changes: 11 additions & 6 deletions schemas/app-sre/app-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,20 +295,20 @@ properties:
sourceProject:
type: object
properties:
name:
name:
type: string
group:
group:
type: string
branch:
branch:
type: string
destinationProject:
type: object
properties:
name:
name:
type: string
group:
group:
type: string
branch:
branch:
type: string
required:
- sourceProject
Expand Down Expand Up @@ -362,6 +362,11 @@ properties:
type: string
format: uri
description: GitLab repo to mirror from
imageBuildUrl:
type: string
format: uri
pattern: "^https:\/\/.+(?<!\/)$"
description: URL for the component's image build job (jenkins job, rhtap pipeline page, etc.)
required:
- name
- resource
Expand Down

0 comments on commit d2475a3

Please sign in to comment.