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

Timeout on initial submodule update did not fail the build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-client-plugin
    • None
    • Jenkins 1.554.3
      Git plugin 2.2.2
      Git client plugin 1.9.1
      Debian Linux Testing

      I defined a Jenkins job to checkout the boost repository and its submodules. During the checkout, the submodule init --recursive failed, but the job was marked as a success. The job should have failed because the submodule init reported an error.

      Steps I took:

      1. Define a new Jenkins job "job-does-not-fail-on-submodule-timeout"
      2. Use Git as the SCM, with git://github.com/boostorg/boost.git as repo
      3. Add "Additional behaviours" "Advanced sub-module behaviours", and check the "Recursively update submodules" checkbox
      4. Build that job

      It will timeout in 10 minutes because the submodule update cannot complete in 10 minutes. However, the job will be marked as "Successful", even though the submodule update failed.

      Job output looked like this:

      Started by user anonymous
      Building remotely on jessie64a (Debian amd64-Debian linux testing Debian-testing amd64-Debian-testing amd64) in workspace /var/lib/jenkins/wheezy64b-slave/workspace/JENKINS-23694-clean-fails-with-submodules-present
      Cloning the remote Git repository
      Cloning repository git://github.com/boostorg/boost.git
       > git init /var/lib/jenkins/wheezy64b-slave/workspace/JENKINS-23694-clean-fails-with-submodules-present
      Fetching upstream changes from git://github.com/boostorg/boost.git
       > git --version
       > git fetch --tags --progress git://github.com/boostorg/boost.git +refs/heads/*:refs/remotes/origin/*
       > git config remote.origin.url git://github.com/boostorg/boost.git
       > git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
       > git config remote.origin.url git://github.com/boostorg/boost.git
      Cleaning workspace
       > git rev-parse --verify HEAD
      No valid HEAD. Skipping the resetting
       > git clean -fdx
      Fetching upstream changes from git://github.com/boostorg/boost.git
       > git fetch --tags --progress git://github.com/boostorg/boost.git +refs/heads/*:refs/remotes/origin/*
       > git rev-parse origin/master^{commit}
      Checking out Revision 85b8813a1cf348ea84a0f99ed5319f39c140900f (origin/master)
       > git config core.sparsecheckout
       > git checkout -f 85b8813a1cf348ea84a0f99ed5319f39c140900f
      First time build. Skipping changelog.
       > git remote
       > git submodule init
       > git submodule sync
       > git config --get remote.origin.url
       > git submodule update --init --recursive
      ERROR: Timeout after 10 minutes
      Finished: SUCCESS
      

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: