Build loop while using GitHub webhook
ImtiazAliJamil opened this issue · 2 comments
Hi I am trying this example with GitHub webhook, its going into build loop. I tried to use the condition to ignore the manifest folder path but its not working. Please advise how to avoid the loop.
Hi
You can do one thing, create separate repo for manifest file. And just before final stage of Jenkins, add one more stage. This stage will checkout manifest repo scm. This way your Jenkins pipeline won't go on loop.
Thing is when we change the Deployment.yaml with new docker image during final stage, it pushes the change back to repo. This again triggers the webhook and thats why loop goes on.
Hope you got the point😊
Same I did actually, but was wondering if we can achieve the same with conditions or parameterize option in Jenkins