Find Questions…

Close ×
First time here? Check out the FAQ!

Bamboo 4.x upgrade

Chuck Clelland asked this question · 61 karma ·

Hi all, just upgraded to Bamboo 4.0 build 2906 and imported my 3.4 project back in with no problem. Yeaayy!!

Our team is moving to an internally hosted Github:Enterprise server, so I pointed my repository at it using https://blahblah/blah/repo, but when i click on the Load Repositories button, it spins for a bit, buts loads nothing. I know the connectivity/etc. is good, since I can git clone the repo by hand.

Is the Source Repository tabs "Github pulldown" somehow defaulting to Github.com (which works btw) and not allowing me to go to an internal server?

thanks,

chuck

334 views

Keith Miller · 191 karma ·

I'm very interested in this as well :)

One Answer:

Przemek Bruski [Atlassian] · 13,378 karma ·

Yes it does default to github. You could try running Babmoo server with

-Datlassian.bamboo.github.api.base.url=http://blahblah/api/v2/json/

(check the url exists first).

This should let you load repositories - checkout probably won't work though. One solution would be to make github.com resolve to your github host, another would be to change the com.atlassian.bamboo.plugins.git.GitHubRepository class and recompile it (it's pretty easy - the plugin is open source: https://github.com/atlassian/bamboo-git-plugin). You can even fork it and create a pull request for us ;-) .

Chuck Clelland · 61 karma ·

Hi Przemek, Thanks for the quick reply and great info!

You are correct, using the -Dattlassian.bamboo.github.api.bas.url=
allowed us to the see our Github Enterprise repo, but it would not let us do a clone.

Next, I cloned https://github.com/atlassian/bamboo-git-plugin and modified the file GitHubRepository.java
changing Github.com to use our Github Enterprise URL. Installed Maven 2.2.1 on Centos 6 and here's the output:

$ mvn package
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/atlassian/maven/plugins/maven-bamboo-plugin/3.7/maven-bamboo-plugin-3.7.pom
[INFO] Unable to find resource 'com.atlassian.maven.plugins:maven-bamboo-plugin:pom:3.7' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/com/atlassian/maven/plugins/maven-bamboo-plugin/3.7/maven-bamboo-plugin-3.7.pom
[INFO] Unable to find resource 'com.atlassian.maven.plugins:maven-bamboo-plugin:pom:3.7' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: com.atlassian.maven.plugins:maven-bamboo-plugin

Reason: POM 'com.atlassian.maven.plugins:maven-bamboo-plugin' not found in repository: Unable to download the artifact from any repository

  com.atlassian.maven.plugins:maven-bamboo-plugin:pom:3.7

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project com.atlassian.maven.plugins:maven-bamboo-plugin


[INFO] ---------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Mar 30 13:57:26 PDT 2012
[INFO] Final Memory: 5M/116M
[INFO] ---------------------------------------------------------------

Piotr Stefan Stefaniak [Atlassian] · 3,441 karma ·

Are you trying to rebuild/recompile the bamboo-git-plugin? If so you need to configure maven to use atlassian's public repositories - for me the easiest way to achieve that was to download atlassian-plugin-sdk (can you find it by yourself? I think it's pretty easy to discover it on the net) and use "atlas-mvn" tool contained in the sdk.

Chuck Clelland · 61 karma ·

Hi Piotr, I downloaded the atlassian plugin SDK, and tried a couple different things (both from within the bamboo-git-plugin root directory - where pom.xml is located):

bash-4.1$ ../atlassian-plugin-sdk-3.9.1/bin/atlas-package -DskipTests
...
[INFO] Unable to find resource 'com.atlassian.bamboo.plugins:atlassian-bamboo-plugin-ssh:pom:4.0-SNAPSHOT' in repository atlassian-public (https://m2proxy.atlassian.com/repository/public)
...
[ERROR] BUILD ERROR
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.atlassian.bamboo.plugins:atlassian-bamboo-plugin-ssh:jar:4.0-SNAPSHOT

  Try downloading the file manually from the project website.
...

I found this post from a year ago where the same problem happened with the 3.1-SNAPSHOT file, but mine is with the 4.0-SNAPSHOT (https://github.com/atlassian/bamboo-git-plugin/issues/3/).

I looked for the the missing file, but was unable to locate it.

Also tried this:

bash-4.1$ ../atlassian-plugin-sdk-3.9.1/bin/atlas-mvn
Executing: /home/bamboo/Downloads/atlassian-plugin-sdk-3.9.1/apache-maven/bin/mvn 
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO]

You must specify at least one goal or lifecycle phase to perform build steps.
The following list illustrates some commonly used build commands:

  mvn clean
    Deletes any build output (e.g. class files or JARs).
  mvn test
    Runs the unit tests for the project.
  mvn install
    Copies the project artifacts into your local repository.
  mvn deploy
    Copies the project artifacts into the remote repository.
  mvn site
    Creates project documentation (e.g. reports or Javadoc).
...

I seem to be getting closer, and I really appreciate the help I've got so far on this site.

Thanks!

Piotr Stefan Stefaniak [Atlassian] · 3,441 karma ·

Try changing in the pom.xml the bamboo.version from 4.0-SNAPSHOT to 4.0. https://github.com/atlassian/bamboo-git-plugin/blob/master/pom.xml#L181 .

Chuck Clelland · 61 karma ·

That worked!! It just finished building successfully.

Thanks so much for your help... everybody have a great weekend. :-)

Looking for something else?

Find Questions…

or Browse other questions tagged:

or Ask a Question