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

Checkout timeout is not honored when used with local branch parameter

    Details

    • Similar Issues:

      Description

      Expectation: When I set the checkout timeout, I'm expecting that Jenkins uses it when it comes to checkout a commit.

      Problem: However, it appears that when you select the "Check out to a specific local branch", the first checkout command does not set correctly the timeout.

      Why it's a problem: I'm using git lfs, and git lfs files are downloaded during the checkout option. For other reasons I can't use the git lfs pull command. Especially during the first checkout command.

      How to reproduce it: Use any version of git-plugin and git-client-plugin. Create a freestyle project, add the following parameters: Timeout=120 for Advanced checkout option, and Checkout to a specific local branch. Build the project. The first checkout will be displayed with a timeout of 10 instead of 120.

      Here is my proposition to fix this error: https://github.com/jenkinsci/git-client-plugin/pull/214

        Attachments

          Issue Links

            Activity

            superboum Quentin Dufour created issue -
            superboum Quentin Dufour made changes -
            Field Original Value New Value
            Description *Expectation:* When I set the checkout timeout, I'm expecting that Jenkins uses it when it comes to checkout a commit.

            *Problem:* However, it appears that when you select the "Check out to a specific local branch", the first checkout command does not set correctly the timeout.

            *Why it's a problem:* I'm using git lfs, and git lfs files are downloaded during the checkout option. For other reasons I can't use the git lfs pull command. Especially during the first checkout command.

            *How to reproduce it:* Use any version of git-plugin and git-client-plugin. Create a freestyle project, add the following parameters: Timeout=120 for Advanced checkout option, and Checkout to a specific local branch. Build the project. The first checkout will be displayed with a timeout of 10 instead of 120.

            _I've a fix. Not yet linked because I need the JIRA id before_
            *Expectation:* When I set the checkout timeout, I'm expecting that Jenkins uses it when it comes to checkout a commit.

            *Problem:* However, it appears that when you select the "Check out to a specific local branch", the first checkout command does not set correctly the timeout.

            *Why it's a problem:* I'm using git lfs, and git lfs files are downloaded during the checkout option. For other reasons I can't use the git lfs pull command. Especially during the first checkout command.

            *How to reproduce it:* Use any version of git-plugin and git-client-plugin. Create a freestyle project, add the following parameters: Timeout=120 for Advanced checkout option, and Checkout to a specific local branch. Build the project. The first checkout will be displayed with a timeout of 10 instead of 120.

            Here is my proposition to fix this error: https://github.com/jenkinsci/git-client-plugin/pull/214
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-22547 [ JENKINS-22547 ]
            superboum Quentin Dufour made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            markewaite Mark Waite made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Comment [ Fix will be in the git-client-plugin 1.19.8 release ]

              People

              • Assignee:
                superboum Quentin Dufour
                Reporter:
                superboum Quentin Dufour
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: