Skip to content

CircleCI SpiraApp

This SpiraApp lets you integrate SpiraPlan and CircleCI so users can launch pipelines from Spira and see their results in Spira as builds.

About this SpiraApp

  • system settings
  • product settings
  • product template setup required
  • toolbar button on release details page
  • additional integration required to record results in Spira
  • configuration in CircleCI (for recording results in Spira)

Setup

This SpiraApp has two independent parts (you do not need one for the other to work):

  • a button on the release details page so users can manually kick off a new CircleCI Pipeline
  • backend integration (using webhooks) so the results of all relevant Pipelines are recorded in Spira as new builds

To record builds in SpiraPlan, you must setup the webhook integration with CircleCI.

To configure this SpiraApp that lets users manually kick off a new Pipeline, you must additionally do the following:

System settings

  • Enter a user-level Personal API Token - make sure the PAT has read and write API permissions. Note: you can not use a project level API token.

system settings page

Product Settings

  • Enter the slug of the CircleCI project

To find the slug:

product settings page

Product Template Setup

  • Add a plain text custom property called circleci-branch-name for Releases in the product's template. Note: you may already have a custom property for this already if you setup the webhook integration - if you have, do not create a second one.

Using the SpiraApp

To use the SpiraApp to start a new CircleCI Pipeline go to a release in that product.

You must make sure the custom property "circleci-branch-name" has the exact name of the branch in the relevant repo (for instance "develop") that you are building the release/sprint against. Note: this field is used by both the CircleCI SpiraApp and the CircleCI webhook integration.

Once the release has the branch name filled in, at any time you can click on the CircleCI button in the top toolbar. This opens the dropdown. Click "Run Pipeline" to start the pipeline on CircleCI. You will see an info message telling you the Pipeline has started.

release details page

Because a pipeline can take a while to run, do not expect to automatically see the build as soon as the info popup goes away. It may take a few minutes or more for the build to be recorded (if this part of the integration has been configured).