Jenkins still seeing deleted branches on GitHub

149 views
Skip to first unread message

Marcelito de Guzman

unread,
Jul 5, 2016, 5:40:05 AM7/5/16
to Jenkins Users
I have successfully integrated Jenkins with Github. I created multiple branches and have deleted them, however, Jenkins is still seeing them when building which causes it to fail.

I've already deleted the branches on GitHub and set additional behaviors on Jenkins like:
> Prune stale remote-tracking branches
> Clean before checkout
> Clean after checkout

Looked at jenkins.log and there was a message about the account jenkins is using not having admin access for webhooks but I've taken care of that by giving the account admin access which is a bit risky in my opinion though, so if anyone knows any workaround for this too i'd be more than glad to hear it.

So basically, now I'm having problems regarding Jenkins seeing the deleted branches on GitHub. Anyone knows how to solve this one?


Cheers,
Marz

Mark Waite

unread,
Jul 6, 2016, 1:41:05 PM7/6/16
to Jenkins Users
We'll probably need more context to understand your problem.  As far as I know, prune stale remote-tracking branches is generally well-behaved, at least in the contexts where I test it.

Mark Waite
Reply all
Reply to author
Forward
0 new messages