Git repo maintains origin/develop
branch copy for develop
branch.
git push origin develop
from my laptop, sync up origin/develop branch
When I create a webhook(web integrations
option) on GitLab portal with Jenkins, I see branches develop
, master
etc... but not origin\develop
or origin/master
.
I select develop
branch and select "push events" and web hook
As per console log,
Checking out Revision 3fffffffffffffhjggjj3fffffffffffffhjggjj (refs/remotes/origin/develop)
is shown in Jenkins, on webhook trigger,
for the corresponding groovy script git(branch: 'develop', credentialsId: credential, url: "${gitLabServer}/${projName}/${repoName}.git")
When user says, git push origin develop
on his laptop,
Is webhook triggering jenkins pipeline on push event to origin/develop
? Because I didn't create webhook for origin/develop
... in pipeline I checkout code from develop branch
origin/develop
is a client-side branch. The webhooks does not care about the update oforigin/develop
. It is invoked by the push event that happens to the branchdevelop
in the server-side repository. – ElpieKayorigin/develop
, then why would I seeChecking out Revision 3fffffffffffffhjggjj3fffffffffffffhjggjj (refs/remotes/origin/develop)
in console log of Jenkins, on webhook trigger? In groovy script, we writegit(branch: 'develop', credentialsId: credential, url: "${gitLabServer}/${projectName}/${repositoryName}.git")
– mohet