-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jenkins: interpret 302,303 and all 2xx response codes as success
The jenkins server responds with 302 when a build with the same parameter is already scheduled. According to https://plugins.jenkins.io/build-token-root/ it can also return 303 for the same scenario. Be more lenient and interpret 302,303 and all 2xx as successful responses. If an unexpected status code is returned a debug message is logged.
- Loading branch information
Showing
1 changed file
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters