jenkinsci / jenkinsci/git-plugin

[JENKINS-56156] It's not possible to trigger a build via webhook push when there is no new commit

Open
#3,401 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue pipeline priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

I have a pipeline declaring the following checkout:

checkout(

{{ poll: true,}}

{{ scm: [$class : 'GitSCM',}}

{{ userRemoteConfigs : [[}}

{{ credentialsId: <>}}

{{ url : <>,}}

{{ ]],}}

{{ branches : [[name: '**']],}}

doGenerateSubmoduleConfigurations: false,

{{ submoduleCfg : [],}}

{{ ]}}

)

 

When I now create a new branch via Bitbucket GUI Jenkins is notified.

But the Git Polling Log is saying:

Started on Feb 15, 2019 9:14:24 AM

no polling baseline in /data/hudson/workspace/integration-tooling-job-generator@​libs/jenkins-pipeline-utility-library on

Using strategy: Default

[poll] Last Built Revision: Revision 35a13763bb4e4bae47242969554bdb2bfe64fe34 (origin/feature/PPP-34542-Evaluate-SonarQube)

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repositories

> git config remote.origin.url ssh://git@​bitbucket.neterra.paysafe.com:7999/psc/integration-tooling.git # timeout=10

Fetching upstream changes from ssh://git@​bitbucket.neterra.paysafe.com:7999/psc/integration-tooling.git

> git --version # timeout=10

using GIT_SSH to set credentials Bob the builder SSH key, used for BitBucket GIT access - NEW

> git fetch --tags --progress ssh://git@​bitbucket.neterra.paysafe.com:7999/psc/integration-tooling.git +refs/heads/:refs/remotes/origin/

Polling for changes in

Seen branch in repository origin/feature/PPP-000-another-test-branch

Seen branch in repository origin/master

Seen 2 remote branches

> git show-ref --tags -d # timeout=10

Done. Took 0.94 sec

No changes

 

I can not find any configuration to make this job run when there is no new commit.

---
Originally reported by rincewind77, imported from: It's not possible to trigger a build via webhook push when there is no new commit


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • label(s): bitbucket, git, jenkins, pipeline, plug-in
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

I have a pipeline declaring the following checkout:

checkout(
{{ poll: true,}}
{{ scm: [$class : 'GitSCM',}}
{{ userRemoteConfigs : [[}}
{{ credentialsId: <<creds>>}}
{{ url : <<gitRepositoryUrl>>,}}
{{ ]],}}
{{ branches : [[name: '**']],}}
doGenerateSubmoduleConfigurations: false,
{{ submoduleCfg : [],}}
{{ ]}}
)

 

When I now create a new branch via Bitbucket GUI Jenkins is notified.

But the Git Polling Log is saying:

Started on Feb 15, 2019 9:14:24 AM
no polling baseline in /data/hudson/workspace/integration-tooling-job-generator@libs/jenkins-pipeline-utility-library on
Using strategy: Default
[poll] Last Built Revision: Revision 35a13763bb4e4bae47242969554bdb2bfe64fe34 (origin/feature/PPP-34542-Evaluate-SonarQube)
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repositories
> git config remote.origin.url ssh://git@bitbucket.neterra.paysafe.com:7999/psc/integration-tooling.git # timeout=10
Fetching upstream changes from ssh://git@bitbucket.neterra.paysafe.com:7999/psc/integration-tooling.git
> git --version # timeout=10
using GIT_SSH to set credentials Bob the builder SSH key, used for BitBucket GIT access - NEW
> git fetch --tags --progress ssh://git@bitbucket.neterra.paysafe.com:7999/psc/integration-tooling.git +refs/heads/:refs/remotes/origin/
Polling for changes in
Seen branch in repository origin/feature/PPP-000-another-test-branch
Seen branch in repository origin/master
Seen 2 remote branches
> git show-ref --tags -d # timeout=10
Done. Took 0.94 sec
No changes

 

I can not find any configuration to make this job run when there is no new commit.

environment

```
Jenkins ver. 2.121.1

Git Plugin 3.9.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.