Issue Type: Bug Bug
Assignee: Nicolas De Loof
Components: git-client
Created: 09/Jul/14 1:08 PM
Description:

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
Environment: Jenkins 1.554.3
Git plugin 2.2.2
Git client plugin 1.9.1
Debian Linux Testing
Project: Jenkins
Priority: Minor Minor
Reporter: Mark Waite
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to