středa 13. dubna 2022

Jenkins - Couldn't find remote ref

I'm using Jenkins pipeline and inside I've tried to set up a combobox with available branches. User can pick one and it will be build.

Easy? No.

I've recieved an error: stderr: fatal: Couldn't find remote ref refs/heads/${BRANCH}

I've found solution after some hours, just untick the Lightweight checkout box at the end of git area in the configuration.