{"id":15791227,"url":"https://github.com/levonet/ansible-ci-jira-comment","last_synced_at":"2026-02-07T07:04:17.342Z","repository":{"id":67322356,"uuid":"147973245","full_name":"levonet/ansible-ci-jira-comment","owner":"levonet","description":"Add new or update last CI comment with build information to Jira task","archived":false,"fork":false,"pushed_at":"2020-10-12T13:41:29.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-30T20:15:18.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/levonet/ci_jira_comment","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levonet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-08T22:04:58.000Z","updated_at":"2020-10-12T13:41:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"d798e8a2-4983-4dac-a0f0-07538376eefe","html_url":"https://github.com/levonet/ansible-ci-jira-comment","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/levonet/ansible-ci-jira-comment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-jira-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-jira-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-jira-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-jira-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levonet","download_url":"https://codeload.github.com/levonet/ansible-ci-jira-comment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-jira-comment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29188320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T23:00:27.518Z","updated_at":"2026-02-07T07:04:17.317Z","avatar_url":"https://github.com/levonet.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CI: Jira comment with build information\n[![Build Status](https://travis-ci.org/levonet/ansible-ci-jira-comment.svg?branch=master)](https://travis-ci.org/levonet/ansible-ci-jira-comment)\n\nAdd new or update last CI comment with build information to Jira task.\n\n## Role Variables\n\n- `ci_jira_api` (required): Jira API url.\n- `ci_jira_username` (required): Jira username.\n- `ci_jira_password` (required): Jira password.\n- `ci_jira_github_branch` (required): Github branch name. Must include Jira task id. For example `TODO-44.feature`.\n- `ci_jira_github_pr` (required): Github Pull Request number.\n- `ci_jira_github_repository_url` (optional): Github repository url.\n- `ci_jira_task_filter` (required): Regexp filter for Jira task from github branch. For example: `(TODO|BUGS)-\\d+`.\n- `ci_jira_message_body` (optional): Some text messages with CI information.\n- `ci_jira_message_id` (optional): Unique text messages id. It needs if there should be more than one message in a Jira comment.\n- `ci_jira_message_title` (optional): Default `Continuous Integration`.\n- `ci_jira_ignore_errors` (optional): Default `no`.\n\n## Example Playbook\n\n```yaml\n- hosts: 127.0.0.1\n  connection: local\n  gather_facts: no\n  vars:\n    ci_jira_api: https://myorg.atlassian.net/rest/api/2\n    ci_jira_username: ci-bot\n    ci_jira_password: secret\n    ci_jira_github_branch: \"{{ github_branch }}\"\n    ci_jira_github_pr: \"{{ github_pr_number }}\"\n    ci_jira_github_repository_url: https://github.com/myorg/myapp\n    ci_jira_task_filter: (MYAPPAPI|MYAPPDB|BUGS)-\\d+\n    ci_jira_message_body: |\n      * App: [pr-{{ ci_jira_github_pr }}.myapp.myorg.com|http://pr-{{ ci_jira_github_pr }}.myapp.myorg.com]\n      * Logs: [myapp-PR-{{ ci_jira_github_pr }}|http://grafana.myorg.com/d/XxXxXx/logs?var-host=sandbox1\u0026var-app=myapp-PR-{{ ci_jira_github_pr }}]\n      * Jenkins: [PR-{{ ci_jira_github_pr }}|http://jenkins.myorg.com/job/myapp/view/change-requests/job/PR-{{ ci_jira_github_pr }}/]\n  roles:\n    - role: levonet.ci_jira_comment\n```\n\nAnd run in Jenkins:\n\n```bash\nansible-playbook myplaybook.yml -e github_branch=\"${CHANGE_BRANCH}\" -e github_pr_number=\"${CHANGE_ID}\"\n```\n\nAs a result, you will receive a comment in Jira task:\n\n\u003e ### Continuous Integration\n\u003e * Github: [PR-115](#)\n\u003e * App: [pr-115.myapp.myorg.com](#)\n\u003e * Logs: [myapp-PR-115](#)\n\u003e * Jenkins: [PR-115](#)\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\n## Author Information\n\nThis role was created by [Pavlo Bashynskyi](https://github.com/levonet)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevonet%2Fansible-ci-jira-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevonet%2Fansible-ci-jira-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevonet%2Fansible-ci-jira-comment/lists"}