How to configure Bamboo Agent to connect to Blackduck application through outbound proxy
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
This article shows how to configure Bamboo Agent to connect to Blackduck application through outbound proxy.
環境
The solution in this article has been tested on version Bamboo 8.0.4 but may work with other versions of Bamboo
診断
When running the build it shows that the agent was unable to connect to Blackduck application
build 19-Jul-2022 05:07:42 2022-07-19 05:07:42 EDT ERROR [main] --- Could not perform the authorization request:
Connect to <blackduck-server> [<blackduck-server>/<blackduck-ip>] failed: Connection timed out: connect
Bamboo Agent is configured to connect to an outbound proxy
wrapper.java.additional.1=-Dbamboo.home="<bamboo-home>"
wrapper.java.additional.2=-Dbamboo.agent.ignoreServerCertName=false
wrapper.java.additional.3=-Dhttp.proxyHost=<proxy-server>
wrapper.java.additional.4=-Dhttp.proxyPort=<proxy-port>
wrapper.java.additional.5=-Dhttps.proxyHost=<proxy-server>
wrapper.java.additional.6=-Dhttps.proxyPort=<proxy-port>
原因
Build logs that Blackduck application is not loading the proxy parameters
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- blackduck.trust.cert = TRUE [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- blackduck.url = <blackduck-app-url> [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- detect.bom.aggregate.name = <aggregate-name> [cmd] *** DEPRECATED ***
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- detect.code.location.name = <location-name> [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- detect.detector.search.depth = 3 [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- detect.project.name = <project-name> [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- detect.project.version.name = <version-number> [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- detect.source.path = <build-path> [cmd]
build 27-Jul-2022 09:43:30 2022-07-27 09:43:30 EDT INFO [main] --- logging.level.detect = DEBUG [cmd]
ソリューション
Configure your Black Duck connection properties file to enable proxy connection
# suppress inspection "UnusedProperty" for whole file
# BlackDuck credentials
blackduck.url=
blackduck.username=
blackduck.password=
blackduck.api.token=
blackduck.timeout=120
blackduck.proxy.host=
blackduck.proxy.port=
blackduck.proxy.username=
blackduck.proxy.password=
blackduck.trust.cert=false