Pipeline with notifyCommit

406 views
Skip to first unread message

Sverre Moe

unread,
May 23, 2016, 4:25:10 AM5/23/16
to Jenkins Users
Using Jenkins Pipeline there is no longer Source Code Management because checkout is handled within the pipeline script.

How can i get notifyCommit to work while using Pipeline script?

I know there is an SCM choice to the pipeline script. Do I have to supply the git url to the project I am building here for notifyCommit to work?

I do not want to have any logic in Jenkinsfile for each project. It would be a nightmare to maintain the same build script within hundreds of projects. I was thinking of putting my pipeline script within a tools/jenkins-script-project.git project. All pipeline projects would check out this pipeline script for building. That case the logic for the pipeline build script is in a single location only. Unless there is another way I can do this.

alexand...@gmail.com

unread,
Jan 13, 2017, 7:54:37 AM1/13/17
to Jenkins Users
Hello!

Did you manage to get notifyCommit to work while using Pipeline script?
I tried some variants (including different pipeline git & checkout steps with/without 'credentialsId', 'poll', 'branch' parameters supplied and with/without UI-setting PollSCM enabled) without any success.

For now I use Jenkins 2.8 and Pipeline Plugin 2.4 .
I get 'No Git consumers using SCM API plugin for: <repo-URL>' .
But I doesn't get 'No git jobs using repository: <repo-URL> and branches:

Kind regards, Alexander.



On Monday, May 23, 2016 at 11:25:10 AM UTC+3, Sverre Moe wrote:
Using Jenkins Pipeline there is no longer Source Code Management because checkout is handled within the pipeline script.

How can i get notifyCommit to work while using Pipeline script?

Sverre Moe

unread,
Jan 17, 2017, 4:46:08 AM1/17/17
to Jenkins Users
I didn't have to do anything actually. Calling notifyCommit from the git server worked just fine with my Multibranch Pipelines. As long as the SCM URL in the pipeline configuration matched with the repo URL in notifyCommit.
Reply all
Reply to author
Forward
0 new messages