Commit 015261f
log appropriate error messages to build console (#759)
closes #711 #702
* Throw JiraException from getVersions method call
* Apply spotless changes
* Remove unused method
* Replace JiraException class with RestClientException class
* Handle errors of addComment and getIssue methods in their root calling methods
* Handle errors of getProjectKeys method
* Handle errors of all the other remaining methods
* Remove unnecessary multi catch
* Throw JiraException from getVersions method call
* Apply spotless changes
* Remove unused method
* Replace JiraException class with RestClientException class
* Handle errors of addComment and getIssue methods in their root calling methods
* Handle errors of getProjectKeys method
* Handle errors of all the other remaining methods
* Remove unnecessary multi catch
* Fix spotless issue
* Update for adding test cases
* - Update for Replacing "Jira Error" with Jira
- Catch specific exceptions rather than catching general Exception
* - Fix never thrown exception catch error
* - Fix test cases
* - Replace TimeoutException tests with RestclientException tests
* - Remove not thrown exception from doc
* - Fix spotless issues
* - Handle IOException and RestClientException in a single catch
* Apply CoPilot suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Hardik Rathod <hardik.rathod@fruitcore.de>
Co-authored-by: Hardikrathod01 <42797234+Hardikrathod01@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent d200565 commit 015261f
File tree
29 files changed
+472
-146
lines changed- src
- main/java/hudson/plugins/jira
- listissuesparameter
- pipeline
- selector
- versionparameter
- test/java/hudson/plugins/jira
- auth
- pipeline
29 files changed
+472
-146
lines changedLines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | | - | |
172 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
| |||
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
345 | | - | |
| 350 | + | |
346 | 351 | | |
347 | 352 | | |
348 | 353 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 104 | + | |
| 105 | + | |
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
0 commit comments