Bitbucket Pipelines to Nexus

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 ?

 

 

1 answer

0 vote

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,415 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you