在 Jenkins CI 上使用腾讯云镜像下载 Gradle Wrapper (#2837)

* 使用腾讯云下载 Gradle Wrapper

* Create config-jenkins.sh

* update script
This commit is contained in:
Glavo 2024-02-20 01:42:51 +08:00 committed by GitHub
parent 3a13ff0e10
commit 03de1598c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
config-jenkins.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
_HMCL_PROJECT_ROOT=$(dirname "${BASH_SOURCE[0]}")
sed -i 's,//services.gradle.org/distributions/,//mirrors.cloud.tencent.com/gradle/,g' "$_HMCL_PROJECT_ROOT/gradle/wrapper/gradle-wrapper.properties"