0
Teamcityでプロキシの背後にグラブルビルドを実行していて、Gradle WrapperがGradle zipファイルをダウンロードできないという問題に直面しています。TeamcityでGradle Wrapperを実行しているときにプロキシをトンネルできません
Gradleコマンドにグラデルパラメータを使ってプロキシ設定を追加しました。
/export/home/**/teamcity/work/1ea348ab17354b2f/gradlew --init-script /export/home/**/teamcity/plugins/gradle-runner/scripts/init.gradle -Djdk.http.auth.tunneling.disabledSchemes=”” -Djdk.http.auth.proxying.disabledSchemes=”” -Dhttp.proxyHost=***.com -Dhttp.proxyPort=3128 -Dhttp.proxyUser=** -Dhttp.proxyPassword=** -Dorg.gradle.daemon=false -d -b build.gradle bootRepackage
は、ここで私が得る例外です:
[11:49:21] [Step 1/1] Starting: bash /export/home/**/teamcity/work/1ea348ab17354b2f/gradlew --init-script /export/home/**/teamcity/plugins/gradle-runner/scripts/init.gradle -Djdk.http.auth.tunneling.disabledSchemes=”” -Djdk.http.auth.proxying.disabledSchemes=”” -Dhttp.proxyHost=***.com -Dhttp.proxyPort=3128 -Dhttp.proxyUser=** -Dhttp.proxyPassword=** -Dorg.gradle.daemon=false -d -b build.gradle bootRepackage [11:49:21] [Step 1/1] in directory: /export/home/**/teamcity/work/1ea348ab17354b2f [11:49:21] [Step 1/1] Downloading https://services.gradle.org/distributions/gradle-4.0-all.zip [11:49:21] [Step 1/1] [11:49:21] [Step 1/1] Exception in thread "main" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required" [11:49:21] [Step 1/1] at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2084) [11:49:21] [Step 1/1] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) [11:49:21] [Step 1/1] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512) [11:49:21] [Step 1/1] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) [11:49:21] [Step 1/1] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) [11:49:21] [Step 1/1] at org.gradle.wrapper.Download.downloadInternal(Download.java:66) [11:49:21] [Step 1/1] at org.gradle.wrapper.Download.download(Download.java:51) [11:49:21] [Step 1/1] at org.gradle.wrapper.Install$1.call(Install.java:62) [11:49:21] [Step 1/1] at org.gradle.wrapper.Install$1.call(Install.java:48) [11:49:21] [Step 1/1] at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69) [11:49:21] [Step 1/1] at org.gradle.wrapper.Install.createDist(Install.java:48) [11:49:21] [Step 1/1] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107) [11:49:21] [Step 1/1] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) [11:49:21] [Step 1/1] Process exited with code 1 [11:49:21] [Step 1/1] Step Gradle failed
私もプロキシを設定する以下のバリエーション試してみました:
-Dhttps.proxyHost=
-Dhttps.proxyPort=
-Dhttps.proxyUser=
-Dhttps.proxyPassword=
-DsystemProp.http.proxyHost=
-DsystemProp.http.proxyPort=
-DsystemProp.http.proxyUser=
-DsystemProp.http.proxyPassword=
-DsystemProp.https.proxyHost=
-DsystemProp.https.proxyPort=
-DsystemProp.https.proxyUser=
-DsystemProp.https.proxyPassword=
をとして、ここで基本認証のためのトンネリングを無効にすることを試してみました:
-Djdk.http.auth.tunneling.disabledSchemes=””
-Djdk.http.auth.proxying.disabledSchemes=””
これらのオプションはTeamcityで動作していないようです。私がやっていなければならないことは他にありますか?
ご協力いただきありがとうございます。