Skip to content

RFC: Add a way to get last queue number and pass the relative url #582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

panicking
Copy link
Contributor

This patch try understand to find a way to calculate the next job and then show a popup to the user include
it to let him to decide to switch to the queue build

It's important to evaluate it and propose change. Right now I have some limited idea how to create
nicer popup

This allow us to evaluate to change the popup and add the full
url to next job

Signed-off-by: Michael Trimarchi <[email protected]>
@panicking panicking requested a review from a team as a code owner February 5, 2025 22:46
@@ -56,19 +61,37 @@
*/
@RequirePOST
@JavaScriptMethod
public boolean doRebuild() throws IOException, ExecutionException {
public JSONObject doRebuild() throws IOException, ExecutionException, Exception {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check Warning

Potential missing permission check in AbstractPipelineViewAction#doRebuild
}
return true;

QueueTaskFuture<? extends Run<?, ?>> f = (QueueTaskFuture) item.getFuture();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you have a look at how blue ocean does it please?

I don't think we want a thread waiting for start.

A better way is probably to poll in the frontend for a bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timja Yes I will do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants