Skip to content

Commit e7cad46

Browse files
committed
Add Jira plugin
1 parent 0b51c62 commit e7cad46

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

CATALOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| [GitHub PR](stable/github-pr/README.MD) | @nick-codefresh | Creates pull request to GitHub | `github` |
1313
| [Run Jenkins Jobs](https://github.com/codefresh-io/plugins/tree/master/stable/run-jenkins-job/README.md)|@vadim-codefresh, @jennyps | Run jenkins job from codefresh pipeline | `jenkins` `job` |
1414
| [Deploy to DCOS](stable/dcos-app-deploy/README.md) | @eugene-codefresh | Deploy application image to DC/OS cluster | `dcos` `deploy` `containers` |
15-
15+
| [Interact with Jira](https://github.com/codefresh-io/plugins/tree/master/stable/jira/README.md)|@antweiss | Interact with Jira from codefresh pipelines | `jira` `workflow`
1616
## Incubator Plugins
1717

1818
| Plugin | Description | Tags |

stable/jira/NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Notes

stable/jira/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Codefresh Jira Plugin
2+
3+
Use Codefresh Jira plugin to interact with a Jira instance.
4+
5+
## Usage
6+
7+
8+
```yaml
9+
---
10+
version: '1.0'
11+
12+
steps:
13+
14+
...
15+
16+
UpdateJira:
17+
title: Update Jira Issue
18+
image: otomato/jira-cli:alpine
19+
commands:
20+
- yes n | jira-cli update ${JIRAID} --comment 'New docker image otomato/bringon:${{CF_SHORT_REVISION}}. Build log is here ${{CF_BUILD_URL}}' --jira-url ${JIRA_URL} -u ${JIRA_USR} -p ${JIRA_PWD}
21+
when:
22+
condition:
23+
all:
24+
JiraIdFound: 'match("${JIRAID}", "[A-Z]+-[0-9]+", true)'
25+
...
26+
27+
```
28+
29+
## Environment Variables
30+
31+
- **required** `JIRA_URL` - Url to Jira instance
32+
- **required** `JIRA_USR` - Jira user
33+
- **required** `JIRA_PWD` - - Jira password

stable/jira/plugin.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
image: otomato/jira-cli
2+
tag: alpine
3+
version: 0.1.0
4+
description: Update a Jira ticket
5+
keywords:
6+
- jira
7+
home: https://github.com/codefreshdemo/jira-cli-docker
8+
sources:
9+
- https://github.com/codefreshdemo/jira-cli-docker
10+
maintainers: # (optional)
11+
- name: Ant Weiss
12+
email: anton@otomato.link
13+
icon: https://github.com/codefreshdemo/jira-cli-docker/blob/master/jira-logo.png
14+
envs:
15+
- name: JIRA_URL
16+
type: required
17+
description: Url to Jira instance
18+
- name: JIRA_USR
19+
type: required
20+
description: Jira user
21+
- name: JIRA_PWD
22+
type: required
23+
description: Jira password

0 commit comments

Comments
 (0)