[JIRA] (JENKINS-60757) "poll: false" has no effect in scm (and git) pipeline steps

2 views
Skip to first unread message

mezin.alexander@gmail.com (JIRA)

unread,
Jan 14, 2020, 2:50:02 AM1/14/20
to jenkinsc...@googlegroups.com
Aleksandr Mezin created an issue
 
Jenkins / Bug JENKINS-60757
"poll: false" has no effect in scm (and git) pipeline steps
Issue Type: Bug Bug
Assignee: Unassigned
Components: workflow-scm-step-plugin
Created: 2020-01-14 07:49
Priority: Minor Minor
Reporter: Aleksandr Mezin

When I create a pipeline job with the following Jenkinsfile (not from SCM):

 

properties([pipelineTriggers([pollSCM('H/2 * * * *')])])

node() {
git(url: 'https://github.com/amezin/jenkins-cant-stop-polling.git', poll: false)
}

I expect that it won't be triggered when I push something to https://github.com/amezin/jenkins-cant-stop-polling

However, it becomes triggered by SCM change. Polling log ends with "Changes found".

Real use case is more complex and involves a custom SCM plugin, but this simple pipeline with git step behaves the same way.

As a workaround, I'll add 'poll' option to our custom SCM plugin (and make its compareRemoteRevisionWith() return NO_CHANGES when set to false). I do not know any workaround for Git and Mercurial plugins (I'd prefer not to build a custom patched version of these).

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages