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

0 views
Skip to first unread message

thomas.minke@ritense.com (JIRA)

unread,
Nov 13, 2019, 5:01:02 PM11/13/19
to jenkinsc...@googlegroups.com
Thomas Minke created an issue
 
Jenkins / Bug JENKINS-60159
Multibranch pipeline - existing branch seen as first time build
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: jenkins-issue-console-log.png, jenkins-issue-pipeline-run-overview.PNG
Components: git-client-plugin, git-plugin
Created: 2019-11-13 22:00
Environment: git-plugin:4.0.0 git-client-plugin:3.0.0. Jenkins:2.204. AWS Linux AMI 2.
Priority: Major Major
Reporter: Thomas Minke

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

thomas.minke@ritense.com (JIRA)

unread,
Nov 13, 2019, 5:03:02 PM11/13/19
to jenkinsc...@googlegroups.com

thomas.minke@ritense.com (JIRA)

unread,
Nov 13, 2019, 5:03:02 PM11/13/19
to jenkinsc...@googlegroups.com
Thomas Minke updated an issue
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@ritense.com (JIRA)

unread,
Nov 13, 2019, 5:04:02 PM11/13/19
to jenkinsc...@googlegroups.com
Thomas Minke updated an issue
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@ritense.com (JIRA)

unread,
Nov 13, 2019, 5:05:02 PM11/13/19
to jenkinsc...@googlegroups.com
Thomas Minke updated an issue
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.earl.waite@gmail.com (JIRA)

unread,
Nov 13, 2019, 5:07:13 PM11/13/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-60159
 
Re: Multibranch pipeline - existing branch seen as first time build

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?

Any other hints that might make the problem repeatable?

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 13, 2019, 5:07:13 PM11/13/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
 
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 13, 2019, 5:31:02 PM11/13/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-60159
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?

thomas.minke@ritense.com (JIRA)

unread,
Nov 14, 2019, 9:03:03 AM11/14/19
to jenkinsc...@googlegroups.com

Hi Mark Waite, 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@ritense.com (JIRA)

unread,
Nov 14, 2019, 9:06:03 AM11/14/19
to jenkinsc...@googlegroups.com

Mark Waite, 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.earl.waite@gmail.com (JIRA)

unread,
Nov 14, 2019, 12:53:02 PM11/14/19
to jenkinsc...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages