Skip to content

Commit

Permalink
chore: Implement Results Emission for All Build Pipelines (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Serdiuk authored and SergK committed Jul 18, 2024
1 parent 69d46b7 commit 3de5a93
Show file tree
Hide file tree
Showing 144 changed files with 417 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/common-library/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: A Helm chart library with common components for KubeRocketCI Tekton
home: https://docs.kuberocketci.io
name: edp-tekton-common-library
type: library
version: 0.3.0
appVersion: 0.3.0
version: 0.3.1
appVersion: 0.3.1
icon: https://docs.kuberocketci.io/img/logo.svg
keywords:
- edp
Expand Down
2 changes: 1 addition & 1 deletion charts/common-library/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# edp-tekton-common-library

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square)
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: 0.3.1](https://img.shields.io/badge/AppVersion-0.3.1-informational?style=flat-square)
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/epmdedp)](https://artifacthub.io/packages/search?repo=epmdedp)

A Helm chart library with common components for KubeRocketCI Tekton Pipelines
Expand Down
8 changes: 8 additions & 0 deletions charts/common-library/templates/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,11 @@ finally:
{{ include "push-to-jira" . | nindent 2 }}

{{- end -}}

{{- define "build-result" -}}
results:
- description: VCS tag
name: VCS_TAG
type: string
value: $(tasks.get-version.results.VCS_TAG)
{{- end -}}
6 changes: 3 additions & 3 deletions charts/pipelines-library/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: edp-tekton-common-library
repository: file://../common-library
version: 0.3.0
version: 0.3.1
- name: tekton-cache
repository: https://epam.github.io/edp-helm-charts/stable
version: 0.3.2
digest: sha256:f72bdbc09392e243ad5f68fd14bce7a10d1c1075227b8e34a5eedfdf5edbe526
generated: "2024-07-05T17:43:39.418807+03:00"
digest: sha256:42c1387e7be56fc4b4621a00648030df1aaf84326bc01e7f593ae04a5b0385ed
generated: "2024-07-18T12:27:37.793043+03:00"
2 changes: 1 addition & 1 deletion charts/pipelines-library/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ annotations:
# we use templates from common library
dependencies:
- name: edp-tekton-common-library
version: 0.3.0
version: 0.3.1
repository: "file://../common-library"
- name: tekton-cache
version: 0.3.2
Expand Down
2 changes: 1 addition & 1 deletion charts/pipelines-library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Follows [Tekton Interceptor](https://tekton.dev/vault/triggers-main/clusterinter
| Repository | Name | Version |
|------------|------|---------|
| @epamedp | tekton-cache | 0.3.2 |
| file://../common-library | edp-tekton-common-library | 0.3.0 |
| file://../common-library | edp-tekton-common-library | 0.3.1 |

## Values

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
description: Change number from Merge Request
- name: patchsetNumber
description: Patchset number from Merge Request

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
description: Change number from Merge Request
- name: patchsetNumber
description: Patchset number from Merge Request

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
default: '{{ $valueFromAlt }}'
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
- name: CODEBASEBRANCH_NAME
description: "Codebasebranch name"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
default: '{{ $valueFromAlt }}'
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
default: '{{ $valueFromAlt }}'
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
default: "maven:3.9.0-eclipse-temurin-17"
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
default: "maven:3.9.0-eclipse-temurin-17"
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
default: "maven:3.9.0-eclipse-temurin-17"
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
default: "maven:3.9.0-eclipse-temurin-17"
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
default: "maven:3.9.0-eclipse-temurin-17"
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
default: "maven:3.9.0-eclipse-temurin-17"
description: "sonar image version"
type: string

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gitlab-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" . | nindent 2 }}

tasks:

{{- include "gerrit-build-start" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" . | nindent 2 }}

tasks:

{{- include "gerrit-build-start" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" . | nindent 2 }}

tasks:

{{- include "github-build-start" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" . | nindent 2 }}

tasks:

{{- include "github-build-start" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" . | nindent 2 }}

tasks:

{{- include "gitlab-build-start" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" . | nindent 2 }}

tasks:

{{- include "gitlab-build-start" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "gerrit-build-start" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
- name: JIRA_SERVER
description: "Jira server name"
default: ""

{{- include "build-result" $ | nindent 2 }}

tasks:

{{- include "github-build-start" $ | nindent 4 }}
Expand Down
Loading

0 comments on commit 3de5a93

Please sign in to comment.