Posting Probo links to Jira



Search Results

This example assumes you’re using GitHub, and that you’re naming your branches the same as your Jira issue id (ex: PRO-123).

Please note that you should not add your passwords or API keys to a public repository! Probo will soon be releasing a safer process for posting build information into Jira.

Step One

Upload a Probo project asset named credentials.sh with a Jira account’s credentials, which should be put in the appropriate place in the quotes.

#!/bin/bash
JIRA_NAME=""
JIRA_PASS=""

Step Two

Add this to your .probo.yaml file, replacing _JIRA_URL with the URL to your Jira instance.

1
2
3
4
5
6
7
- plugin: Script
  name: Comment in Jira
  script: |
    echo '{"body": "Probo build at ' $BUILD_DOMAIN '"}' >> comment.json
    source $ASSET_DIR/credentials.sh
    BRANCH_NAME=$(echo $BRANCH_NAME | awk '{print toupper($0)}')
    curl -D- -u $JIRA_NAME:$JIRA_PASS -X POST --data @comment.json -H "Content-Type: application/json" https://_JIRA_URL/rest/api/2/issue/$BRANCH_NAME/comment
Get Started with Probo.CI

Want to Try Probo today?
Get Started Fast!.

When you sign up for a Probo.CI registration code, you will get a two week trial of the plan of your choosing. For more information on how to get started, click here .

LEARN MORE ABOUT PROBO.CI'S PRICING