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 votes

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

635 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot