Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build loop while using GitHub webhook #74

Open
ImtiazAliJamil opened this issue Sep 4, 2023 · 2 comments
Open

Build loop while using GitHub webhook #74

ImtiazAliJamil opened this issue Sep 4, 2023 · 2 comments

Comments

@ImtiazAliJamil
Copy link

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.

@Ryzen-thor
Copy link

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😊

@ImtiazAliJamil
Copy link
Author

Same I did actually, but was wondering if we can achieve the same with conditions or parameterize option in Jenkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants