0

I'm using the Replay button in Jenkins to tweak changes to pipeline scripts without committing them. When I use the browser's search function to locate a string that exists in the code, most of the time the browser can't find it. I observed this both in Firefox and Chrome. Is there a way of searching that I am not aware of?

1 Answer 1

1

When you scroll in the Pipeline script viewer, the javascript for the page deletes any lines that aren't visible and adds any lines that are scrolling into view. So as far as the browser search feature is concerned, the lines outside the viewable area don't exist.

However, you can expand the size of the code window by clicking and dragging the bottom (similar to the text boxes used to edit questions/answers on SuperUser and other SE sites).

2
  • That explains why the search sometimes works and sometimes doesn't, very frustrating when you don't understand the cause!
    – Francis
    Commented May 2, 2022 at 15:50
  • You can also just use Ctrl-A, Ctrl-C to copy the whole script out (even the unsearchable bits that are outside your view) and paste it into VSCode (or other) to work on there. Don't ask me how it can't search when it can copy! Commented May 23 at 8:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .