fix: 修复版本信息生成中的分支名称获取方式

This commit is contained in:
xiaozhou233 committed 2026-08-09 22:01:11 +08:00
1 parent aabef84aab
commit fc77683586
1 file changed
+6 -4
Vendored
+6 -4
View File
@@ -48,15 +48,15 @@ environment {
}
}
stage('Version') {
steps {
dir('dashboard') {
stage('Version') {
steps {
dir('dashboard') {
sh '''
cat > dist/version.json <<EOF
{
"buildNumber": "${BUILD_NUMBER}",
"commit": "$(git rev-parse --short HEAD)",
"branch": "$(git branch --show-current)",
"branch": "${GIT_BRANCH}",
"time": "$(date '+%Y-%m-%d %H:%M:%S')"
}
EOF
@@ -64,6 +64,8 @@ EOF
}
}
}
stage('Package') {
steps {
// Package frontend