Skip to content

Commit

Permalink
Include indication of CI execution env
Browse files Browse the repository at this point in the history
  • Loading branch information
shibu-kv committed Oct 16, 2024
1 parent 3c4b811 commit a5c7f95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gtest-json-result-push.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def json_string(xml_file_path, git_folder_path):

#The below command will work on the github action container to get the component name
component_name=os.popen('git remote -v | grep fetch | cut -d "/" -f5 | cut -d " " -f1').read()
execution_link="https://github.com/rdkcentral"
developer=os.popen('git log --pretty="format:%an" -n 1').read()
jira_ticket=os.popen('git log --pretty="format:%s" -n 1 | cut -d ":" -f1').read()

Expand All @@ -53,6 +54,7 @@ def json_string(xml_file_path, git_folder_path):
json_root = {
"commit_id": commit_id.strip(),
"component_name": component_name.strip(),
"execution_link": execution_link.strip(),
"developer": developer.strip(),
"jira_ticket": jira_ticket.strip()
}
Expand Down

0 comments on commit a5c7f95

Please sign in to comment.