Frew Schmidt
Frew Schmidt

Reputation: 9544

How do I get Jenkins to skip failed branches till they change?

I'm using Jenkins with the Multiple SCMs + Git plugin. Jenkins is correctly doing a new build for each branch, but for some reason when it fails a build it just keeps trying to redo the build, even if the branch has not changed. How can I fix it so that Jenkins will move on to the next branch and only try to rebuild if the current branch changes?

Upvotes: 6

Views: 556

Answers (1)

sti
sti

Reputation: 11075

I have seen similar behavior with my Jenkins jobs when I had the Delete Workspace plugin installed and the "Delete workspace after the build is complete" checkbox was checked in the job configuration. The git plugin apparently needs to have a workspace where it stores the information about the branches it has seen and tried to build. If the post-build action wipes the workspace, git plugin loses its state.

Upvotes: 1

Related Questions