File tree 1 file changed +23
-5
lines changed
1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,29 @@ pipeline {
31
31
}
32
32
33
33
stages {
34
+ stage(' Pull Request' ) {
35
+ agent any
36
+ when {
37
+ expression {
38
+ env. BASE_BRANCH . startsWith(" PROVIDER-" )
39
+ }
40
+ }
41
+ steps {
42
+ // Update Jira Ticket Custom fields
43
+ script {
44
+ // customfield_10126 - Merge Request
45
+ // customfield_10159 - Branch
46
+ def fields = [
47
+ fields : [
48
+ customfield_10126 : env. JOB_BASE_NAME ,
49
+ customfield_10159 : env. CHANGE_BRANCH ,
50
+ ]
51
+ ]
52
+ jiraEditIssue site : ' irontec.atlassian.net' , idOrKey : env. JIRA_TICKET , issue : fields
53
+ }
54
+ }
55
+ }
56
+
34
57
// --------------------------------------------------------------------
35
58
// Image stage
36
59
// --------------------------------------------------------------------
@@ -651,11 +674,6 @@ pipeline {
651
674
println " No functional reviewer assigned."
652
675
}
653
676
654
- // Link issue Pull Request field with current branch
655
- // customfield_10126 - Pull Request
656
- def fields = [fields : [customfield_10126 : env. JOB_BASE_NAME ]]
657
- jiraEditIssue site : ' irontec.atlassian.net' , idOrKey : env. JIRA_TICKET , issue : fields
658
-
659
677
// Validated - 10325
660
678
def status = issue. data. fields. status
661
679
println " Issue Status: ${ status.name} (${ status.id} )"
You can’t perform that action at this time.
0 commit comments