code: def get_branch():
          
          if os.getenv('GIT_BRANCH'):
              # Travis
              branch = os.getenv('GIT_BRANCH')
          elif os.getenv('BRANCH_NAME'):
              # Jenkins 2
              branch = os.getenv('BRANCH_NAME')
          else:
              branch = check_output(
                  "git rev-parse --abbrev-ref HEAD".split(" ")
                  ).decode('utf-8').strip()
  
          return branch.replace("/", "_")
docs: Returns the current code branch