How to configure Pipeline to run atlas-mvn test for JIRA Plugin

jssaggu April 28, 2019

I am trying to configure a CI Pipeline for my JIRA plugin but it's always failing with I/O Exception. Seems like proxy settings issue but can't figure out the exact values and where to put?

Pipeline file:

#image: translucent/atlassian-plugin-sdk
#image: codeclou/docker-atlassian-sdk:latest
#image: cptactionhank/atlassian-jira
image: forty8fiftylabs/atlassian-sdk

pipelines:
default:
- step:
script:
- atlas-version
- atlas-mvn clean test

As can be seen I tried various images but all had the same issues.

POM (main parts):

 <pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<id>atlassian-public</id>
<url>https://packages.atlassian.com/maven-public</url>
</pluginRepository>

I also tried configuring as suggested on this page.

Full Error:

+ atlas-mvn clean test
Executing: /usr/share/atlassian-plugin-sdk-6.3.12/apache-maven-3.2.1/bin/mvn -gs /usr/share/atlassian-plugin-sdk-6.3.12/apache-maven-3.2.1/conf/settings.xml clean test
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
Downloading: https://maven.atlassian.com/repository/public/com/atlassian/maven/plugins/jira-maven-plugin/8.0.0-edfff1b/jira-maven-plugin-8.0.0-edfff1b.pom
Apr 28, 2019 9:28:01 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Apr 28, 2019 9:28:01 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Apr 28, 2019 9:28:01 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Apr 28, 2019 9:28:01 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Apr 28, 2019 9:28:01 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Apr 28, 2019 9:28:01 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Downloading: file:///usr/share/atlassian-plugin-sdk-6.3.12/repository/com/atlassian/maven/plugins/jira-maven-plugin/8.0.0-edfff1b/jira-maven-plugin-8.0.0-edfff1b.pom
Downloading: http://repo.maven.apache.org/maven2/com/atlassian/maven/plugins/jira-maven-plugin/8.0.0-edfff1b/jira-maven-plugin-8.0.0-edfff1b.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.zt.jira.sot:jira-s-o-t:0.0.2 (/opt/atlassian/pipelines/agent/build/pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.0.0-edfff1b or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.atlassian.maven.plugins:jira-maven-plugin:jar:8.0.0-edfff1b: Could not transfer artifact com.atlassian.maven.plugins:jira-maven-plugin:pom:8.0.0-edfff1b from/to atlassian-public (https://maven.atlassian.com/repository/public): Connection reset -> [Help 2]
[ERROR] Unknown packaging: atlassian-plugin @ line 18, column 16
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events