File tree 1 file changed +12
-3
lines changed
src/main/java/org/jenkinsci/plugins/JiraTestResultReporter
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,12 @@ public List<AbstractFields> getConfigs() {
110
110
* Getter for the default issue type
111
111
* @return the default issue type
112
112
*/
113
- public long getIssueType () {
114
- return JobConfigMapping .getInstance ().getIssueType (getJobName ());
113
+ public String getIssueType () {
114
+ Long issueType = JobConfigMapping .getInstance ().getIssueType (getJobName ());
115
+ if (issueType == null ) {
116
+ issueType = 1L ;
117
+ }
118
+ return Long .toString (issueType );
115
119
}
116
120
117
121
/**
@@ -229,8 +233,13 @@ public JiraTestDataPublisher(
229
233
defaultIssueType = 1L ;
230
234
}
231
235
236
+ if (configs == null ) {
237
+ // avoid immutable list below
238
+ configs = new ArrayList <AbstractFields >();
239
+ }
240
+
232
241
this .jobConfig = new JobConfigMapping .JobConfigEntryBuilder ()
233
- .withProjectKey (projectKey )
242
+ .withProjectKey (Util . fixNull ( projectKey ) )
234
243
.withIssueType (defaultIssueType )
235
244
.withAutoRaiseIssues (autoRaiseIssue )
236
245
.withAutoResolveIssues (autoResolveIssue )
You can’t perform that action at this time.
0 commit comments