Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

70_publish_comment.sh - Post a pipeline status comment to Jira

Description

Posts a comment to the Jira issue of this repository, using jira_add_comment.py. The pipelines call it when they start and when they finish. The ticket is taken from $jiraticket, then config.yml, then looked up from an openICPSR directory; when none is found, nothing is posted. Failures to post never stop the pipeline.

Usage

./automations/70_publish_comment.sh [pipeline-name] [status] [extra-message]
./automations/70_publish_comment.sh --config [pipeline-name] [extra-message]

The status comment links to the Bitbucket build, using BITBUCKET_WORKSPACE, BITBUCKET_REPO_SLUG and BITBUCKET_BUILD_NUMBER.

Environment Variables