Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,182
Community Members
 
Community Events
176
Community Groups

Unable to scan repository (ProcessTimeoutException) with bamboo-specs and linked repository

Edited

Hi all,

I'm trying to experiment with Bamboo Specs (java) with a Linked Repository. But i'm getting a "Unable to scan repository" caused by ProcessTimeoutException.
If I run my bamboo-spec from IntelliJ IDEA I can successfully publish my plan. But setting it up from a Linked Repository it fails.

Content of pom.xml used:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!--Edit template at BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml-->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-parent</artifactId>
<version>6.7.1</version>
<relativePath/>
</parent>

<artifactId>bamboo-specs-generator</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-api</artifactId>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<compilerArg>-proc:none</compilerArg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</project>
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/6.7.1/bamboo-specs-parent-6.7.1.pom
Unable to scan repository my_bamboo_specs_sandbox(247529979) for Bamboo Specs
com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository my_bamboo_specs_sandbox(247529979) for Bamboo Specs
at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$9(RepositoryStoredSpecsServiceImpl.java:816)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
at java.lang.Thread.run(Unknown Source)
Caused by: com.atlassian.utils.process.ProcessTimeoutException: process timed out
at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:664)
at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161)
at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114)
at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$9(RepositoryStoredSpecsServiceImpl.java:803)
... 8 more

Files in repo:
bamboo-specs\src\main\java\com\company\my_sandbox\PlanSpec.java
bamboo-specs\pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-parent</artifactId>
<version>6.7.1</version>
<relativePath/>
</parent>

<groupId>com.company.my_sandbox</groupId>
<artifactId>bamboo-specs</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-api</artifactId>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!-- run 'mvn test' to perform offline validation of the plan -->
<!-- run 'mvn -Ppublish-specs' to upload the plan to your Bamboo server -->
</project>

What I checked:
Bamboo > Admin > Security settings > Repository Stored Specs security settings > Enable Repository Stored Specs
Bamboo project settings (the project I try to create a new buildplan in) > Bamboo Specs repositories > Added my linked repository
Bamboo > Linked Respository > my_bamboo_specs_sandbox > bamboo specs > enabled 'scan for bamboo-specs'
Bamboo > Linked Respository > my_bamboo_specs_sandbox > bamboo specs > Also I see the the bamboo project listed under 'Build projects'.
Bamboo > Linked Respository > my_bamboo_specs_sandbox > bamboo specs > Spec status > error in bamboo specs (see the log in start of post)

 

2 answers

I don't have access to the Bamboo server so I cannot try it. I know our build agent don't have internet access. Not sure about the bamboo server itself.

 

We have a nexus server running in our network to mirror maven-central. I have set this up on my local win user profile .m2/settings.xml. 

I don't see any documentation if I can also add this to the POM.xml of my bamboo specs project. All google hits say you should do it via user profile or at global maven installation. But I don't have access to this.

Foong Atlassian Team Apr 15, 2019

I don't have access to the Bamboo server so I cannot try it. I know our build agent don't have internet access. Not sure about the bamboo server itself.

Bamboo will run Specs build in the machine hosting Bamboo instead of the remote agent.

I don't see any documentation if I can also add this to the POM.xml of my bamboo specs project. All google hits say you should do it via user profile or at global maven installation. But I don't have access to this.

Modify the file <bamboo-install>/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml in the machine hosting Bamboo

How to understand "Modify the file <bamboo-install>/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml in the machine hosting Bamboo" could you give step detail.

@jianbo qu you should go to your Bamboo server instance and modify the bamboo-specs-pom.xml file to customize the POM in a way you need. In my case is the path /opt/atlassian/bamboo/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml 

0 votes
Foong Atlassian Team Apr 15, 2019
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/6.7.1/bamboo-specs-parent-6.7.1.pom

Check if the machine hosting Bamboo able to access the above URL 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events