File tree 2 files changed +8
-4
lines changed
incubating/jira-issue-manager
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,11 @@ def environment_setup():
66
66
# Logic here to use the regex to grab the jira issue key and assign it to issue
67
67
jira_issue_source_field = StepUtility .getEnvironmentVariable ('JIRA_ISSUE_SOURCE_FIELD' , env )
68
68
jira_issue_source_field_regex = StepUtility .getEnvironmentVariable ('JIRA_ISSUE_SOURCE_FIELD_REGEX' , env )
69
- ## TODO - Brandon - need to do regex work here
70
- issue = jira_issue_source_field
69
+
70
+ if jira_issue_source_field_regex :
71
+ issue = re .match (jira_issue_source_field_regex , jira_issue_source_field ).group (0 )
72
+ else :
73
+ issue = jira_issue_source_field
71
74
72
75
# Issue fields below
73
76
# Retrieve the project environment variable and add the project to a dict representation
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ kind: step-type
2
2
version : ' 1.0'
3
3
metadata :
4
4
name : jira-issue-manager
5
- version : 1.0.11
5
+ version : 1.0.12
6
6
title : Jira Issue Manager
7
7
isPublic : true
8
8
description : Create, Update, & Validate Jira Issues
@@ -12,6 +12,7 @@ metadata:
12
12
stage : incubating
13
13
maintainers :
14
14
- name : Brandon Phillips
15
+ - name : Dustin Van Buskirk
15
16
categories :
16
17
- build
17
18
official : true
@@ -245,7 +246,7 @@ spec:
245
246
stepsTemplate : |-
246
247
main:
247
248
name: jira-issue-manager
248
- image: quay.io/codefreshplugins/jira-issue-manager:1.0.11
249
+ image: quay.io/codefreshplugins/jira-issue-manager:1.0.12
249
250
environment:
250
251
[[ range $key, $val := .Arguments ]]
251
252
- '[[ $key ]]=[[ $val ]]'
You can’t perform that action at this time.
0 commit comments