Skip to content
This repository was archived by the owner on Nov 10, 2019. It is now read-only.

Add Jira plugin #18

Merged
merged 1 commit into from
Jan 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| [GitHub PR](stable/github-pr/README.MD) | @nick-codefresh | Creates pull request to GitHub | `github` |
| [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` |
| [Deploy to DCOS](stable/dcos-app-deploy/README.md) | @eugene-codefresh | Deploy application image to DC/OS cluster | `dcos` `deploy` `containers` |

| [Interact with Jira](https://github.com/codefresh-io/plugins/tree/master/stable/jira/README.md)|@antweiss | Interact with Jira from codefresh pipelines | `jira` `workflow`
## Incubator Plugins

| Plugin | Description | Tags |
Expand Down
1 change: 1 addition & 0 deletions stable/jira/NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Notes
33 changes: 33 additions & 0 deletions stable/jira/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Codefresh Jira Plugin

Use Codefresh Jira plugin to interact with a Jira instance.

## Usage


```yaml
---
version: '1.0'

steps:

...

UpdateJira:
title: Update Jira Issue
image: otomato/jira-cli:alpine
commands:
- 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}
when:
condition:
all:
JiraIdFound: 'match("${JIRAID}", "[A-Z]+-[0-9]+", true)'
...

```

## Environment Variables

- **required** `JIRA_URL` - Url to Jira instance
- **required** `JIRA_USR` - Jira user
- **required** `JIRA_PWD` - - Jira password
23 changes: 23 additions & 0 deletions stable/jira/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
image: otomato/jira-cli
tag: alpine
version: 0.1.0
description: Update a Jira ticket
keywords:
- jira
home: https://github.com/codefreshdemo/jira-cli-docker
sources:
- https://github.com/codefreshdemo/jira-cli-docker
maintainers: # (optional)
- name: Ant Weiss
email: anton@otomato.link
icon: https://github.com/codefreshdemo/jira-cli-docker/blob/master/jira-logo.png
envs:
- name: JIRA_URL
type: required
description: Url to Jira instance
- name: JIRA_USR
type: required
description: Jira user
- name: JIRA_PWD
type: required
description: Jira password