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.
pipeline-name - Name of the Bitbucket pipeline. No built-in Bitbucket variable provides it, so the pipeline passes it.
status - started or completed (default: completed). Other values are used as given.
extra-message - Appended to the comment, for example the “Software detected: ...” line from 26_update_jira_software.sh, or the old and new directory names from 5-rename-directory.
--config - Post the uncommitted git diff -- config.yml instead of a status message. Nothing is posted when there is no diff.
The status comment links to the Bitbucket build, using BITBUCKET_WORKSPACE, BITBUCKET_REPO_SLUG and BITBUCKET_BUILD_NUMBER.