Skip to content

Commit

Permalink
get build number and print
Browse files Browse the repository at this point in the history
  • Loading branch information
ronrobb committed Aug 6, 2024
1 parent 56144e2 commit 2a63bc7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sync/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def generate_db_config(type_,schema_,settings):
}
return dbconfig

def get_build_number():
return os.environ.get("BUILD_NUMBER")

def required_variables_exists():
ret = True

Expand Down Expand Up @@ -110,6 +113,12 @@ def read_settings():

def main() -> None:
definition_of_yes = ["Y","YES","1","T","TRUE","t","true"]

build_number = get_build_number()
print("<------------------ b.u.i.l.d n.u.m.b.e.r ----------------->")
print(f"Running Sync BUILD NUMBER: {build_number}")
print("<------------------ b.u.i.l.d n.u.m.b.e.r ----------------->")

# print(os.environ.get("TEST_MODE"))
if os.environ.get("TEST_MODE") is None:
print("Error: test mode variable is None")
Expand Down

0 comments on commit 2a63bc7

Please sign in to comment.