You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
473 B
13 lines
473 B
import re, os
|
|
from log_conf import logger
|
|
|
|
# 项目绝对路径
|
|
git_project_env = os.environ.get('JWHT_GIT_PROJECT_DIR')
|
|
git_project_dir = git_project_env if git_project_env else "epmet-saas"
|
|
|
|
# 上一次提交记录文件
|
|
last_deploy_commit_record = os.environ.get('JWHT_LAST_DEPLOY_COMMIT_RECORD')
|
|
commit_record_file_path = last_deploy_commit_record if last_deploy_commit_record else "./lastcommit.txt"
|
|
|
|
logger.error(git_project_dir)
|
|
logger.info(commit_record_file_path)
|
|
|