You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jira_instance: companyname # Subdomain for Jira Cloud
125
+
client_id: ${{ secrets.JIRA_CLIENT_ID }}
126
+
client_secret: ${{ secrets.JIRA_CLIENT_SECRET }}
127
+
```
128
+
129
+
#### Use in Deployment Pipeline
130
+
131
+
Just provide an evironment to send a deployment event instead of a build event.
132
+
133
+
```yaml
134
+
- name: Jira Integration
135
+
if: ${{ always() }}
136
+
uses: rohit-gohri/jira-ci-cd-integration@v0
137
+
with:
138
+
state: ${{ job.status }}
139
+
environment: staging
140
+
issue: JCI-3, JCI-6 # Comma separated list of issues being deployed/released. You are expected to generate this yourself in a previous step
141
+
jira_instance: companyname # Subdomain for Jira Cloud
142
+
client_id: ${{ secrets.JIRA_CLIENT_ID }}
143
+
client_secret: ${{ secrets.JIRA_CLIENT_SECRET }}
144
+
```
145
+
146
146
## Options
147
147
148
-
Provide these options directly in case of Github Actions or via the env variable in the brackets for Docker.
148
+
Provide these options via environment variables, or directly in case of Github Actions.
149
149
150
150
### Inputs
151
151
152
-
#### jira_instance (JIRA_INSTANCE)
152
+
#### jira_instance: JIRA_INSTANCE
153
153
154
154
Sub Domain of Jira Cloud Instance. This part of the url: `https://<jira_instance>.atlassian.net`
155
155
156
-
#### client_id (JIRA_CLIENT_ID)
156
+
#### client_id: JIRA_CLIENT_ID
157
157
158
158
ClientID of OAuth Creds
159
159
160
-
#### client_secret (JIRA_CLIENT_SECRET)
160
+
#### client_secret: JIRA_CLIENT_SECRET
161
161
162
162
Client Secret of OAuth Creds
163
163
164
-
#### event_type (JIRA_EVENT_TYPE) (optional)
164
+
#### event_type: JIRA_EVENT_TYPE (optional)
165
165
166
166
"build"or "deployment", (default is "build"). You can override this manually or just provide an `evironment` to send a deployment event instead of a build event.
167
167
168
-
#### state (BUILD_STATE) (optional)
168
+
#### state: BUILD_STATE (optional)
169
169
170
170
"successful"/"success", "failed", or "canceled" (default is "successful")
171
171
172
-
#### issue (JIRA_ISSUES) (optional)
172
+
#### issue: JIRA_ISSUES (optional)
173
173
174
174
Will be parsed from branch name automatically if absent. Or you can provide it according to your own logic. Can be multiple issues.
175
175
176
-
#### token (optional)
177
-
178
-
> Only for Github Action
179
-
180
-
Github Token to get commit message in Pull Request Events. Since github context doesn't have commit message, we use the Github API to get it from sha.
181
-
182
176
### Pipeline Info
183
177
184
-
#### Commit Message (COMMIT_MESSAGE)
178
+
#### Commit Message: COMMIT_MESSAGE
185
179
186
-
If you have the jira id in the commit message then provide this.
180
+
If the tool can't detect your commit message you may provide a value directly. If you have the jira id in the commit message, it will be parsed.
187
181
188
-
#### Pipeline Name (BUILD_NAME)
182
+
#### Pipeline Name: BUILD_NAME
189
183
190
-
A name for your pipeline
184
+
A custom name for your pipeline
191
185
192
-
#### Environment Name (BUILD_ENVIROMENT) (optional)
> NOTE: Automatically inferred from environment name
201
195
202
-
We try to automatically parse this from environment but if you want to override then provide one of (`unmapped`, `development`, `testing`, `staging`, `production`)
196
+
The tool tries to automatically parse this from environment but if you want to override then provide one of (`unmapped`, `development`, `testing`, `staging`, `production`)
0 commit comments