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

git poll scm will be doing build for all the branches when we use docker

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      When we trigger the builds on the docker slaves then there git poll scm will not able to find any work space.
      so it finds changes every time in each branch.
      and if there are changes in only one branch it will triggers the builds for all the branches available on that repository.

          [JENKINS-30892] git poll scm will be doing build for all the branches when we use docker

          Mark Waite added a comment - - edited

          Can you provide more details about your setup? I don't understand how the condition you're describing could happen.

          The workspace is created on the specific Docker slave which is executing the build. The build data which stores the results of each build are stored on the master. Since the results are stored on the master, they are preserved even when the Docker slave no longer exists. The job should only rebuild branches whose SHA1 has not yet been built.

          Each time a new job is defined, all matching branches for that job will be built. That is intentional. However, after the matching branches have been built, then only the matching branches which have changes will be built.

          Mark Waite added a comment - - edited Can you provide more details about your setup? I don't understand how the condition you're describing could happen. The workspace is created on the specific Docker slave which is executing the build. The build data which stores the results of each build are stored on the master. Since the results are stored on the master, they are preserved even when the Docker slave no longer exists. The job should only rebuild branches whose SHA1 has not yet been built. Each time a new job is defined, all matching branches for that job will be built. That is intentional. However, after the matching branches have been built, then only the matching branches which have changes will be built.

            Unassigned Unassigned
            jenkins_git Jenkins git
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: