Skip to content

Commit a7d3225

Browse files
Fix false 'Build Scheduled' notification when parent multibranch is d… (#26117)
1 parent 396e6e9 commit a7d3225

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/resources/hudson/views/BuildButtonColumn/icon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Behaviour.specify(
1414
method: "post",
1515
headers: crumb.wrap({}),
1616
}).then((rsp) => {
17-
if (rsp.ok) {
17+
if (rsp.status === 201) {
1818
notificationBar.show(message, notificationBar.SUCCESS);
1919
} else {
2020
notificationBar.show(failure, notificationBar.ERROR);

core/src/main/resources/lib/hudson/project/configurable/configurable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
method: "post",
1111
headers: crumb.wrap({}),
1212
}).then((rsp) => {
13-
if (rsp.ok) {
13+
if (rsp.status === 201) {
1414
notificationBar.show(success, notificationBar.SUCCESS);
1515
} else {
1616
notificationBar.show(failure, notificationBar.ERROR);

0 commit comments

Comments
 (0)