Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56156

It's not possible to trigger a build via webhook push when there is no new commit

XMLWordPrintable

      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.

            Unassigned Unassigned
            rincewind77 Maik Ebert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: