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

Multibranch pipeline - existing branch seen as first time build

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • git-plugin:4.0.0 git-client-plugin:3.0.0. Jenkins:2.204. AWS Linux AMI 2.

      Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows "First time build. Skipping changelog." ,and the build-overview says "no changes", both incorrectly.

       

      This results in confusion whether commits/merges have been done correctly as they are not visible.

          [JENKINS-60159] Multibranch pipeline - existing branch seen as first time build

          Thomas Minke created issue -
          Thomas Minke made changes -
          Description Original: Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows:
          First time build. Skipping changelog.
          New: Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows "First time build. Skipping changelog." ,and the build-overview says "no changes", both incorrectly.
          Thomas Minke made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Thomas Minke made changes -
          Description Original: Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows "First time build. Skipping changelog." ,and the build-overview says "no changes", both incorrectly. New: Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows "First time build. Skipping changelog." ,and the build-overview says "no changes", both incorrectly.

           

          This results in confusion whether merges have
          Thomas Minke made changes -
          Description Original: Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows "First time build. Skipping changelog." ,and the build-overview says "no changes", both incorrectly.

           

          This results in confusion whether merges have
          New: Sometimes when building an existing multi-branch pipeline, the build is incorrectly regarded as first-time. The console log shows "First time build. Skipping changelog." ,and the build-overview says "no changes", both incorrectly.

           

          This results in confusion whether commits/merges have been done correctly as they are not visible.

          Mark Waite added a comment - - edited

          Can you provide more details about conditions that might cause a build to be identified as a first-time build?

          Were there specific changes that happened at the time in the git repository, in the job definition, or in the agent definitions?

          Are you using ephemeral or static agents?

          I inserted detection checks into several of my test jobs in hopes of seeing it, but did not see it. Will need more details in order to duplicate the problem.

          Any other hints that might make the problem repeatable?

          Mark Waite added a comment - - edited Can you provide more details about conditions that might cause a build to be identified as a first-time build? Were there specific changes that happened at the time in the git repository, in the job definition, or in the agent definitions? Are you using ephemeral or static agents? I inserted detection checks into several of my test jobs in hopes of seeing it, but did not see it. Will need more details in order to duplicate the problem. Any other hints that might make the problem repeatable?
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          Thomas Minke added a comment -

          Hi markewaite, thanks for your quick response. I'm looking for more info to reproduce this issue, but I'm afraid I've got very little.

          • Today, 4 out of 5 builds show as 'first-time' in the console logs, and 1 shows a changelog.
          • These builds were both after branch merges and direct commits. Nothing irregular in the Git repository as far as I can see.
          • The Jenkinsfile was not changed in all of the builds.
          • We use a static agent with one SSH slave. All 5 builds that I started today ran on this SSH slave.  

          Do you have any hints which information would be relevant for reproducing or debugging? 

          Thomas Minke added a comment - Hi markewaite , thanks for your quick response. I'm looking for more info to reproduce this issue, but I'm afraid I've got very little. Today, 4 out of 5 builds show as 'first-time' in the console logs, and 1 shows a changelog. These builds were both after branch merges and direct commits. Nothing irregular in the Git repository as far as I can see. The Jenkinsfile was not changed in all of the builds. We use a static agent with one SSH slave. All 5 builds that I started today ran on this SSH slave.   Do you have any hints which information would be relevant for reproducing or debugging? 

          Thomas Minke added a comment -

          markewaite, one other thing: we have another issue at the moment regarding Git checkout. Sometimes the checkout fails with an error message, without failing the build. This results in a deployment of the code without updating. I will create a separate issue for this, but it might be related.

          Thomas Minke added a comment - markewaite , one other thing: we have another issue at the moment regarding Git checkout. Sometimes the checkout fails with an error message, without failing the build. This results in a deployment of the code without updating. I will create a separate issue for this, but it might be related.

          Mark Waite added a comment -

          I'm not aware of cases where a checkout fails and does not fail the build. Definitely provide examples of the problem in a separate issue.

          Mark Waite added a comment - I'm not aware of cases where a checkout fails and does not fail the build. Definitely provide examples of the problem in a separate issue.

            Unassigned Unassigned
            thomasminke Thomas Minke
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: