Skip to content

Commit

Permalink
Minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Oct 17, 2023
1 parent cc8199f commit b2b9aa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/opt_in_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def _run_in_ci():
Checks that script is executed in CI job.
:return: True if script is executed in CI job, otherwise False
"""
ci_env_vars = ["CI", "TF_BUILD"]
ci_env_vars = ["CI", "TF_BUILD", "JENKINS_URL"]

for env_name in ci_env_vars:
if env_name in os.environ:
Expand All @@ -291,7 +291,6 @@ def _run_in_ci():
def check(self, enable_opt_in_dialog, disable_in_ci=False):
"""
Checks if user has accepted the collection of the information by checking the consent file.
For CI jobs always returns ConsentCheckResult.DECLINED
:return: consent check result
"""
if disable_in_ci and self._run_in_ci():
Expand Down

0 comments on commit b2b9aa8

Please sign in to comment.