-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[JENKINS-49138] Build Now to redirect to new build #7633
base: master
Are you sure you want to change the base?
Conversation
setTimeout(function () { | ||
new Ajax.Request(t.getHeader('Location') + 'api/json?tree=executable[url]', { | ||
onSuccess: function (t2) { | ||
if (t2.status === 200 && t2.responseJSON.executable != null && t2.responseJSON.executable.url != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugly. #5514 (comment)
@@ -30,7 +30,22 @@ THE SOFTWARE. | |||
<l:task href="${url}/build?delay=0sec" icon="icon-clock icon-md" onclick="${it.parameterized?null:'return build_' + id + '(this)'}" permission="${it.BUILD}" post="${!it.parameterized}" title="${it.buildNowText}"/> | |||
<script> | |||
function build_${id}(a) { | |||
new Ajax.Request(a.href); | |||
new Ajax.Request(a.href, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Ideally would wait for #7635. |
This is now actionable again, back to my to-do list… |
See JENKINS-49138. There are a lot of different UI gestures to trigger a build, and this just covers one of them so far, and perhaps not in the ideal way (needs UX design in some cases). Not sure if I have the appetite to continue, or if it makes sense to open for review even when incomplete.
Testing done
build-now.mp4
Proposed changelog entries
Maintainer checklist
Before the changes are marked as
ready-for-merge
:upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidate
to be considered (see query).