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

Bamboo Atlassian SDK for atlas-run not working

Apurv Dhadankar July 12, 2022

Hi,

I have created the plugin using the atlas-create-bamboo-plugin.

I'm following this documentation for creating a plugin -> Introduction to writing Tasks (atlassian.com),

But when I'm running the atlas-run command. the plugin is not running. After validation Test 3.  

image.png

 

Getting this exception - > [INFO] [talledLocalContainer] 2022-07-12 20:48:14,014 WARN [C3P0PooledConnectionPoolManager[identityToken->1hge9hrap1vf3ir8z05msm|1919a7ed]-HelperThread-#0] [ThreadPoolAsynchronousRunner] An Error forced the closing of Thread[C3P0PooledConnectionPoolManager[identityToken->1hge9hrap1vf3ir8z05msm|1919a7ed]-HelperThread-#0,5,main]. Will attempt to reconstruct, but this might mean that something bad is happening.
[INFO] [talledLocalContainer] Exception in thread "C3P0PooledConnectionPoolManager[identityToken->1hge9hrap1vf3ir8z05msm|1919a7ed]-HelperThread-#0" java.lang.ExceptionInInitializerError
[INFO] [talledLocalContainer] java.lang.ExceptionInInitializerError
[INFO] [talledLocalContainer] at com.ibm.icu.text.Collator.<clinit>(Collator.java:946)
[INFO] [talledLocalContainer] at com.ibm.icu.text.Collator.<clinit>(Collator.java:946)
[INFO] [talledLocalContainer] at java.lang.Class.forName0(Native Method)
[INFO] [talledLocalContainer] at java.lang.Class.forName0(Native Method)
[INFO] [talledLocalContainer] at java.lang.Class.forName(Class.java:264)
[INFO] [talledLocalContainer] at java.lang.Class.forName(Class.java:264)

 

And in the last build is failing -> image.png

pom.xml -

<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>myfirstplugin</groupId>
<artifactId>myfirstplugin</artifactId>
<version>myfirstplugin</version>

<organization>
<name>Example Company</name>
<url>http://www.example.com/</url>
</organization>

<name>myfirstplugin</name>
<description>This is the myfirstplugin:myfirstplugin plugin for Atlassian Bamboo.</description>
<packaging>atlassian-plugin</packaging>

<properties>
<bamboo.version>6.8.0</bamboo.version>
<bamboo.data.version>6.8.0</bamboo.data.version>
<amps.version>8.1.2</amps.version>
<plugin.testrunner.version>2.0.2</plugin.testrunner.version>
<spring.version>4.2.5.RELEASE</spring.version>
<osgi.javaconfig.version>0.2.0</osgi.javaconfig.version>
<!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. -->
<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>atlassian-bamboo-web</artifactId>
<version>${bamboo.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
<version>${osgi.javaconfig.version}</version>
</dependency>
<!-- OSGi Java Config dependencies -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>

<!-- WIRED TEST RUNNER DEPENDENCIES -->
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-testrunner</artifactId>
<version>${plugin.testrunner.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>bamboo-maven-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${bamboo.version}</productVersion>
<productDataVersion>${bamboo.data.version}</productDataVersion>
<enableQuickReload>true</enableQuickReload>

<!-- See here for an explanation of default instructions: -->
<!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
<instructions>
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>

<!-- Add package to export here -->
<Export-Package>
myfirstplugin.api,
</Export-Package>

<!-- Add package import here -->
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
*
</Import-Package>

<!-- Ensure plugin is spring powered -->
<Spring-Context>*</Spring-Context>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>

1 comment

Emilyvs September 14, 2022

has anyone found a solution?

 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events