github - Jenkins: Don't want to trigger on Git Tag (No Workspace) -


i have users need trigger jenkins jobs on github (enterprise) pushes. have access webhooks, , git service hooks. these hooks push if commit tag.

some users auto-tag builds if succeed, auto-tag causes new webhook fire , triggers build again.

typically avoiding using git plugins "exclude user" section , setting list of service accounts on list tagging.

however advent of our new ephemeral build farm, don't maintain workspaces anymore (we spin nodes docker containers on demand). approach no longer works (see: https://issues.jenkins-ci.org/browse/jenkins-29282).

my temporary work around run shell script first build step git-log compares , aborts build if service account committer.

i'm looking way use git hook trigger build not start build if tag event.

this appear difficult ask, feel problem has pretty common. many people must auto-tag git after build runs , avoid rebuilding.

i know question getting old, had similar problem bitbucket's webhook jenkins send out notifications of push changes tags. tried configuring hook not send those, never worked.

after trial , error, thing worked me set "branch specifier (blank 'any')" field of jenkins git plugin "everything tags", using regex one: :^(?!.*(refs\/tags\/)).*.

i admit solution has major drawback job such configuration cannot build tags... in case, set of jobs had configuration wasn't expected build tags, okay solution, have preferred remove notifications.

hope helps.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -