HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Jenkins Pipeline "Build when a change is pushed to GitLab"

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
pushedjenkinsgitlabbuildwhenchangepipeline

Problem

I have a Jenkins declarative pipeline that is ran via a webhook from GitLab whenever a change is pushed to my repo. In Jenkins, I have the following trigger option selected:

Is there a way for me to add this trigger to my Jenkins declarative pipeline, if so how?

Solution

Looks like you are using the Gitlab plugin for jenkins?
if so this link should be of help https://github.com/jenkinsci/gitlab-plugin#declarative-pipeline-jobs

Context

StackExchange DevOps Q#4758, answer score: 6

Revisions (0)

No revisions yet.