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

poll scm keeps triggering jenkins build even if no branch present

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      we are using poll SCM option with schedule for building a project when any SCM changes happen. Repository name and branch name is hard coded in the build job. But have noticed that if the branch is  not present in that specific repo, the job keeps triggering. what can we do?

       

      ours is a multibranch and multi jenkins environment.. and job triggreing for no branch is a problem as it uses the executors. any help??

        Attachments

          Activity

          Hide
          vlatombe Vincent Latombe added a comment -

          This plugin only provides a button to trigger polling manually. Polling behaviour depends on the SCM you are using.

          Show
          vlatombe Vincent Latombe added a comment - This plugin only provides a button to trigger polling manually. Polling behaviour depends on the SCM you are using.
          Hide
          ananya_layek2 ananya layek added a comment -

          I am not polling manually, have scheduled it for every hour. But it keeps building the job(and fails) when no branch is present with that specific name. is there any way not to trigger the job if branch/repo dont exist with the name mentioned??

          Show
          ananya_layek2 ananya layek added a comment - I am not polling manually, have scheduled it for every hour. But it keeps building the job(and fails) when no branch is present with that specific name. is there any way not to trigger the job if branch/repo dont exist with the name mentioned??
          Hide
          vlatombe Vincent Latombe added a comment -

          ananya layek Please report an issue against the SCM plugin you are using. This is outside the scope of the plugin.

          Show
          vlatombe Vincent Latombe added a comment - ananya layek Please report an issue against the SCM plugin you are using. This is outside the scope of the plugin.

            People

            Assignee:
            vlatombe Vincent Latombe
            Reporter:
            ananya_layek2 ananya layek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: