前端开源初始化提交

This commit is contained in:
hukdoesn
2025-06-30 11:57:32 +08:00
parent 00090a0aca
commit fa52e9e571
50 changed files with 12349 additions and 12 deletions

View File

@@ -819,7 +819,7 @@ class BuildExecuteView(View):
history_id=generate_id(),
task=task,
build_number=build_number,
branch=branch if branch else '', # 对于预发布和生产环境,分支可能为空
branch=branch if branch else '', # 对于预发布和生产环境,分支为空
commit_id=commit_id,
version=version if version else None, # 对于预发布和生产环境,使用传入的版本号
status='pending', # 初始状态为等待中

View File

@@ -319,7 +319,7 @@ class NotificationTestView(View):
# 准备测试消息
timestamp = str(int(time.time() * 1000))
test_message = "这是一条测试消息,如果收到了这条消息,说明机器人配置正确。"
test_message = "这是一条测试消息,如果收到了这条消息,说明机器人配置正确。"
# 根据不同类型的机器人发送测试消息
try:

View File

@@ -194,6 +194,6 @@ STATIC_URL = 'static/'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# 构建相关配置
#BUILD_ROOT = Path('/data/liteops/build') # 修改为指定目录
BUILD_ROOT = Path('/data')
BUILD_ROOT = Path('/Users/huk/Downloads/data') # 修改为指定目录
# BUILD_ROOT = Path('/data')
BUILD_ROOT.mkdir(exist_ok=True, parents=True) # 确保目录存在,包括父目录

View File

@@ -1,7 +1,7 @@
[client]
#host = 127.0.0.1
host = 127.0.0.1
#host = mysql
host = liteops-mysql
#host = liteops-mysql
port = 3306
database = liteops
user = root