ci:为 gradlew脚本添加执行权限

- 在 .gitlab-ci.main.yml 和 .gitlab-ci.test.yml 文件中添加了授予 gradlew 执行权限的步骤
- 确保在 main 和 test 分支上执行 CI/CD 流程时,gradlew 脚本具有必要的执行权限
- 提高了构建流程的可靠性和一致性
This commit is contained in:
gewuyou 2025-07-16 12:19:25 +08:00
parent 3bfcf98e21
commit fada717c7e
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,8 @@ build:
- .kotlin/
policy: pull-push
script:
- echo "🔧 授予 gradlew 执行权限..."
- chmod +x gradlew
- ./gradlew clean build
tags:
- java
@ -81,6 +83,8 @@ publish:
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
script:
- echo "🔧 授予 gradlew 执行权限..."
- chmod +x gradlew
- ./gradlew publishMavenJavaPublicationToGitLabRepository
tags:
- java

View File

@ -19,6 +19,8 @@ publish:
rules:
- if: '$CI_COMMIT_BRANCH == "test"'
script:
- echo "🔧 授予 gradlew 执行权限..."
- chmod +x gradlew
- ./gradlew publishMavenJavaPublicationToGitLabRepository
tags:
- java