Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe52140

Browse files
authored
Revert 'Fix false Build Scheduled notification' (jenkinsci#26517)
Revert "Fix false 'Build Scheduled' notification when parent multibranch is disabled" Reported as issue: * jenkinsci#26516 This reverts commit a7d3225.
1 parent f1352d3 commit fe52140

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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.status === 201) {
17+
if (rsp.ok) {
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.status === 201) {
13+
if (rsp.ok) {
1414
notificationBar.show(success, notificationBar.SUCCESS);
1515
} else {
1616
notificationBar.show(failure, notificationBar.ERROR);

0 commit comments

Comments
 (0)