Jenkins job for jira plugin development?

Hi all,

Is here anyone who created a jenkins job for building a jira plugin?

I would like to know if it is possible and how to deal with atlassian's sdk in Jenkins?

Thank you!

5 answers

1 accepted

4 votes
Accepted answer

Hi,

We're using Jenkins to build our plugin - Configuration Manager for JIRA. Here's a summary of the required configuration:

  1. Install atlassian plugin sdk on the Jenkins build machines
  2. In Jenkins add a maven installation pointing to the sdk - Manage Jenkins -> Cofigure System -> Maven Installations. Click "Add Maven" button and uncheck "Install Automatically" then
    1. Name it (i.e. atlas-mvn)
    2. In MAVEN_HOME put the path to the sdk (i.e. /opt/atlassian-plugin-sdk/apache-maven).
  3. Create a job with the following configuration
    1. Add a build step "Invoke Top Level Maven Target"
    2. Choose atlas-mvn (or whatever name you've specified in 2.1) from the "Maven Version" dropdown
    3. Put "clean install" in the "Goals" textbox (or any other depending on what you want to do)

 I can't find the atlassian plugin sdk in Jenkins plugin directory, how do I install this?

Hi Boris,

Could you please provide steps to provide target JIRA server details in Jenkins to install a built JIRA plugin? 

Thanks.

Boris How did you fix the missing jta-1.0.1.pom issue. I have been trying to get it to work and have followed all the instructions I could find with no succes. It never seems to find it.

I've installed it in my own maven repository. Cloudbees offers a maven repository for freee, so you might consider it as an option.

What did you use for your own maven repository. I have been playing with artifactory but Jenkins complains that it needs Maven 3.0.2 to force dependency resolution form artifactory. I looked at CloudBees but would like to setup my own maven repo locallly.

You can try Nexus OSS - http://www.sonatype.org/nexus/it's one of the best out there :).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,637 views 18 21
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