Hi We have recently started using bitbucket Pipelines for our CI. However I am having hard time to connect to our Nexus repository hosted in our server.
All the builds failed with connection issue .
Is there anything you could h
Downloading: http://xxxxx/repository/maven-snapshots/com/utils/1.7-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.utils.17-SNAPSHOT/maven-metadata.xml from/to ossrh (http://xxxx/repository/maven-snapshots/): Connect to xxxx [/1xxxx] failed: Connection timed out (Connection timed out)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:35 min
[INFO] Finished at: 2017-08-02T19:03:34+00:00
[INFO] Final Memory: 37M/705M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project: Failed to retrieve remote metadata com.::1.7-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.:1.7-SNAPSHOT/maven-metadata.xml from/to ossrh (http://xxxxx/repository/maven-snapshots/): Connect to xxxxxxx [/xxxxx] failed: Connection timed out (Connection timed out) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
elp us to identify the issue ?
Hey @Nithyusha Reddy,
Your nexus server has to be available to the internet, or at least accessible from the Bitbucket Cloud environment - if you're using ip-based restrictions, you'll need to allow: https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html
Based upon the error message
```
Connect to xxxxxxx [/xxxxx] failed: Connection timed out (Connection timed out) -> [Help 1]
```
It suggests that there's no network connectivity between the Bitbucket Pipelines build infrastructure, and your nexus repository.
-Seb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.