Skip to content

Commit ddac72f

Browse files
committed
Release 0.2.7, generated from commit db94d8a
1 parent 789fdd4 commit ddac72f

File tree

7 files changed

+36
-10
lines changed

7 files changed

+36
-10
lines changed

.github/workflows/test-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: 'release-test'
1+
name: 'test-release'
22

33
on:
44
push:
55
tags:
6-
- v0**
6+
- v[0-9]+.[0-9]+.[0-9]+
7+
- v[0-9]+
78

89
jobs:
910
test-build:

.gitlab-ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ workflow:
66
rules:
77
- if: $CI_COMMIT_TAG
88

9-
jira-integration:
9+
jira-integration-on-success:
10+
stage: .post
11+
when: on_success
1012
image: registry.gitlab.com/rohit-gohri/jira-ci-cd-integration:v0
1113
script: jira-integration
1214
variables:
15+
BUILD_STATE: successful
1316
JIRA_ISSUES: JCI-7
1417
BUILD_NAME: gitlab-pipeline
1518
JIRA_INSTANCE: boringdownload
19+
20+
jira-integration-on-failure:
21+
extends: jira-integration-success
22+
when: on_failure
23+
variables:
24+
BUILD_STATE: failure

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Generate new OAuth Credentials and copy
2323

2424
## Usage With Github Actions
2525

26+
[![test-release-workflow](https://github.com/rohit-gohri/jira-ci-cd-integration/actions/workflows/test-release.yml/badge.svg?event=push)](https://github.com/rohit-gohri/jira-ci-cd-integration/actions/workflows/test-release.yml)
27+
2628
### Add OAuth Creds as secrets to Github
2729

2830
**See:** <https://docs.github.com/en/actions/reference/encrypted-secrets>
@@ -81,6 +83,8 @@ Configuration for the Docker image is through env vars. Read more in [options](#
8183

8284
#### Drone.io
8385

86+
[![Build Status](https://cloud.drone.io/api/badges/rohit-gohri/jira-ci-cd-integration/status.svg?ref=refs/tags/v0)](https://cloud.drone.io/rohit-gohri/jira-ci-cd-integration)
87+
8488
Add secrets for `JIRA_CLIENT_ID` and `JIRA_CLIENT_SECRET` and then add this to your pipeline:
8589

8690
```yaml
@@ -98,15 +102,26 @@ steps:
98102

99103
#### Gitlab CI/CD
100104

101-
[Add a CI/CD Variable to your project](https://docs.gitlab.com/ee/ci/variables/#add-a-cicd-variable-to-a-project) for `JIRA_CLIENT_ID` and `JIRA_CLIENT_SECRET` and then add this step to your pipeline, preferably in the last stage.
105+
[![pipeline status](https://gitlab.com/rohit-gohri/jira-ci-cd-integration/badges/v0/pipeline.svg)](https://gitlab.com/rohit-gohri/jira-ci-cd-integration/-/commits/v0)
106+
107+
[Add a CI/CD Variable to your project](https://docs.gitlab.com/ee/ci/variables/#add-a-cicd-variable-to-a-project) for `JIRA_CLIENT_ID` and `JIRA_CLIENT_SECRET` (remember to mask them) and then add these steps to your pipeline (we use `.post` stage so it runs last)
102108

103109
```yaml
104-
jira-integration:
110+
jira-integration-on-success:
111+
stage: .post
112+
when: on_success
105113
image: registry.gitlab.com/rohit-gohri/jira-ci-cd-integration:v0
106114
script: jira-integration
107115
variables:
116+
BUILD_STATE: successful
108117
BUILD_NAME: gitlab-pipeline
109-
JIRA_INSTANCE: boringdownload
118+
JIRA_INSTANCE: companyname
119+
120+
jira-integration-on-failure:
121+
extends: jira-integration-success
122+
when: on_failure
123+
variables:
124+
BUILD_STATE: failure
110125
```
111126

112127
## Options

dist/docker/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/docker/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira-ci-cd-integration",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"private": true,
55
"description": "TypeScript template action",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)