diff --git a/charts/common-library/templates/_common.yaml b/charts/common-library/templates/_common.yaml index 584f6e50..7741fa82 100644 --- a/charts/common-library/templates/_common.yaml +++ b/charts/common-library/templates/_common.yaml @@ -270,10 +270,6 @@ finally: value: "$(tasks.get-version.results.VCS_TAG)" - name: VERSION value: "$(tasks.get-version.results.VERSION)" - workspaces: - - name: source - workspace: shared-workspace - subPath: source {{- end -}} {{- define "send-to-microsoft-teams-build" -}} diff --git a/charts/pipelines-library/templates/tasks/push-to-jira.yaml b/charts/pipelines-library/templates/tasks/push-to-jira.yaml index 2c47c038..c401d4d8 100644 --- a/charts/pipelines-library/templates/tasks/push-to-jira.yaml +++ b/charts/pipelines-library/templates/tasks/push-to-jira.yaml @@ -11,9 +11,6 @@ spec: description: >- The push-to-jira Task will create JiraIssueMetadata Custom Resource - workspaces: - - name: source - description: The workspace consisting of the cr file and project files. params: - name: TICKET_NAME_PATTERN type: string @@ -33,8 +30,7 @@ spec: type: string steps: - name: push-to-jira - image: python:3.10.1-alpine3.15 - workingDir: $(workspaces.source.path) + image: epamedp/tekton-autotest:0.1.3 env: - name: TICKET_NAME_PATTERN value: "$(params.TICKET_NAME_PATTERN)" @@ -53,7 +49,7 @@ spec: - name: VERSION value: "$(params.VERSION)" script: | - #!/usr/bin/env python + #!/usr/bin/python import os import sys @@ -159,12 +155,6 @@ spec: with open("cr.json", "w") as outfile: outfile.write(template_json) - - name: kubectl - image: bitnami/kubectl:1.25.2 - workingDir: $(workspaces.source.path) - script: | - #!/usr/bin/env bash - set -e - echo "[TEKTON][DEBUG] Trying to create JiraIssueMetadata CR" - kubectl apply -f cr.json - echo "[TEKTON][DEBUG] JiraIssueMetadata CR has been created" + print("[TEKTON][DEBUG] Trying to create JiraIssueMetadata CR") + os.system('kubectl apply -f cr.json') + print("[TEKTON][DEBUG] JiraIssueMetadata CR has been created")