Skip to content

Commit

Permalink
Update OpenTmiReport.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe committed Nov 4, 2021
1 parent 5c3db53 commit cbdc85b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytest_opentmi/OpenTmiReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def _new_result(self, report):
result.execution.environment.framework.version = __pytest_info__.version
result.execution.sut.commit_id = os.environ.get('GIT_COMMIT', "")
result.execution.sut.branch = os.environ.get('GIT_BRANCH', "")
result.execution.sut.tag = os.environ.get('GIT_TAG', "")
tag = os.environ.get('GIT_TAG')
if tag:
result.execution.sut.tag = [tag]
result.job.id = os.environ.get('BUILD_TAG', str(uuid.uuid1()))
result.campaign = os.environ.get('JOB_NAME', "")
if report.user_properties:
Expand Down

0 comments on commit cbdc85b

Please sign in to comment.