Skip to content

Commit

Permalink
fix: Failed push-to-jira step in build pipeline on okd (#94)
Browse files Browse the repository at this point in the history
Jira EPMDEDP-13045

Related: #94
Change-Id: I505e67672f1c62b902304d5c374a7d170ed59ca6
  • Loading branch information
oleksandr_taruraiev committed Jan 11, 2024
1 parent 1090d9c commit 41f95c5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions charts/pipelines-library/templates/tasks/push-to-jira.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ spec:
template_json = set_params_jira_issue_metadata(metadata_name, [commit_id], [ticket_number], codebase, json.dumps(payload, indent = 4))
print("[TEKTON] Writing JiraIssueMetadata template to cr.json file")
with open("cr.json", "w") as outfile:
outfile.write(template_json)
print("[TEKTON][DEBUG] Applying JiraIssueMetadata CR")
os.system(f"kubectl apply -f - << EOF\n{template_json}\nEOF")
print("[TEKTON][DEBUG] Trying to create JiraIssueMetadata CR")
os.system('kubectl apply -f cr.json')
print("[TEKTON][DEBUG] JiraIssueMetadata CR has been created")

0 comments on commit 41f95c5

Please sign in to comment.