Branch: refs/heads/master
Home: https://github.com/jenkinsci/build-token-root-plugin
Commit: 278dfea639ea6dee5dc498db209d8f51fae4bdb0
https://github.com/jenkinsci/build-token-root-plugin/commit/278dfea639ea6dee5dc498db209d8f51fae4bdb0
Author: François Freitag <[email protected]>
Date: 2022-07-01 (Fri, 01 Jul 2022)
Changed paths:
M README.md
M pom.xml
M src/main/java/org/jenkinsci/plugins/build_token_root/BuildRootAction.java
M
src/test/java/org/jenkinsci/plugins/build_token_root/BuildRootActionTest.java
Log Message:
-----------
Improve response status when queuing jobs quickly
The plugin behavior to consecutive build requests was:
1. 201 Created. (Build queued)
2. 201 Created. (First build in progress, build queued)
3. 302 Found. Location: ., which ends up being the `/buildByToken/`
path. Following the redirect, clients receive a 404 as the page does
not exist.
Instead, redirect clients to the queued build, following core Jenkins
behavior.
https://github.com/jenkinsci/jenkins/blob/e27b310065b3c036b5fc9d123f1d1d99d3058c00/core/src/main/java/hudson/model/ParametersDefinitionProperty.java#L199
Use the `schedule2` operation for finer-grained results on the
scheduling results. Replaces the deprecated `schedule`.
Clarify rsp.sendRedirect(SC_CREATED, ...): simply set the status code
and location header, since SC_CREATED is not a redirect.
Commit: f758b17fca3b9c1083dd6fb4136cac14e5f5160c
https://github.com/jenkinsci/build-token-root-plugin/commit/f758b17fca3b9c1083dd6fb4136cac14e5f5160c
Author: Jesse Glick <[email protected]>
Date: 2022-07-01 (Fri, 01 Jul 2022)
Changed paths:
M README.md
M pom.xml
M src/main/java/org/jenkinsci/plugins/build_token_root/BuildRootAction.java
M
src/test/java/org/jenkinsci/plugins/build_token_root/BuildRootActionTest.java
Log Message:
-----------
Merge pull request #83 from francoisfreitag/schedule-many
Align status when queuing jobs quickly with core behavior (303)
Compare:
https://github.com/jenkinsci/build-token-root-plugin/compare/5d4d05bb3c7d...f758b17fca3b
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/build-token-root-plugin/push/refs/heads/master/5d4d05-f758b1%40github.com.