Skip to content

Commit

Permalink
fix(azuredevops): fix environment field (#7064) (#7065)
Browse files Browse the repository at this point in the history
Co-authored-by: Lynwee <[email protected]>
  • Loading branch information
github-actions[bot] and d4x1 authored Feb 29, 2024
1 parent 1c37dd5 commit b264482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def convert(self, b: Build, ctx: Context):
environment = devops.CICDEnvironment.PRODUCTION
if ctx.scope_config.production_pattern is not None and ctx.scope_config.production_pattern.search(
b.name) is None:
environment = devops.CICDEnvironment.EMPTY
environment = None

if b.finish_time:
duration_sec = abs(b.finish_time.timestamp() - b.start_time.timestamp())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def convert(self, j: Job, ctx: Context) -> Iterable[devops.CICDPipeline]:
environment = devops.CICDEnvironment.PRODUCTION
if ctx.scope_config.production_pattern is not None and ctx.scope_config.production_pattern.search(
j.name) is None:
environment = devops.CICDEnvironment.EMPTY
environment = None

if j.finish_time:
duration_sec = abs(j.finish_time.timestamp() - j.start_time.timestamp())
Expand Down

0 comments on commit b264482

Please sign in to comment.