Jenkins next job Bookmarklet

When viewing jenkins' console output of a job I wanted to switch quickly to the next job (same branch et al) so this adds 1 to the build number and redirects you

Source (example.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Ajavascript%3A%28function%28%29%7Bjob_re%3D/%5E%28%5C/job%5C/.*%5C/job%5C/.*%5C/%29%28%5Cd+%29%28%5C/console%29%24/%3Bresult%3Djob_re.exec%28window.location.pathname%29%3Bif%28result%21%3D%3Dnull%29%7Bjob_nr%3DparseInt%28result%5B2%5D%29%3Bnew_nr%3D%28job_nr+1%29.toString%28%29%3Bnew_url%3Dresult%5B1%5D+new_nr+result%5B3%5D%3Bwindow.location.assign%28window.location.origin+new_url%29%7D%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.