hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe'

Jenkins JIRA | frew schmidt | 5 years ago
  1. 0

    [JENKINS-13455] when a submodule can't be checked out an exception is thrown - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe'
  2. 0

    Sometimes developers accidentally forget to push a submodule and thus make it impossible to check out their changes completely. This causes jenkins to throw an exception and on the next build it merely tries again and will inevitably fail. Maybe we should make an option for failed submodules to fail the build and move on instead of throwing an exception. I'll paste in the console output when this happened to me here. The first time: {noformat} Started by an SCM change Building in workspace /var/lib/jenkins/jobs/Lynx/workspace Checkout:workspace / /var/lib/jenkins/jobs/Lynx/workspace - hudson.remoting.LocalChannel@aa0ff27 Using strategy: Default Last Built Revision: Revision 15f062624b185b08d695a0949ede1431fe75bdd5 (origin/feature/LXS-1289-ip.plx-redux) Fetching changes from 1 remote Git repository Fetching upstream changes from cs:lynx Pruning obsolete local branches Seen branch in repository origin/HEAD Seen branch in repository origin/LXS/000-dbic-error Seen branch in repository origin/bug/LXS-000-WebIcons-Pass2Frew Seen branch in repository origin/bug/LXS-1053-Check-in-Primary Seen branch in repository origin/bug/LXS-1093-user-password Seen branch in repository origin/bug/LXS-1094-Account-cleanup Seen branch in repository origin/bug/LXS-1139-crash Seen branch in repository origin/bug/LXS-1327-incorrect-sms-errors Seen branch in repository origin/bug/LXS-1352-snpp-strip-newlines-and-unicode Seen branch in repository origin/bug/LXS-432-Type-Macro Seen branch in repository origin/bug/LXS-504-Excel-Openings Seen branch in repository origin/bug/LXS-774-Shared-RO Seen branch in repository origin/bug/LXS-948-Log-Shows-Dest-twice Seen branch in repository origin/bug/LXS-948-log-duplication Seen branch in repository origin/bug/LXS-971-D-Drive Seen branch in repository origin/bug/LXS-976-Excel-Button Seen branch in repository origin/feature/LXS-1060-Active-Dir-SubUsers Seen branch in repository origin/feature/LXS-1064-Remove-AD-Import Seen branch in repository origin/feature/LXS-1093-User-Edits Seen branch in repository origin/feature/LXS-1094-Account-Cleanup Seen branch in repository origin/feature/LXS-1096-ReadOnly Seen branch in repository origin/feature/LXS-1111-New-WebIcon Seen branch in repository origin/feature/LXS-1111-Web-Icon Seen branch in repository origin/feature/LXS-1111-jason-fix Seen branch in repository origin/feature/LXS-1111-web-icon-group Seen branch in repository origin/feature/LXS-1145-remove-theme-and-news Seen branch in repository origin/feature/LXS-1146-remove-find-Lynxnet Seen branch in repository origin/feature/LXS-1196-client-database Seen branch in repository origin/feature/LXS-1198-client-testing Seen branch in repository origin/feature/LXS-1214-AlarmState Seen branch in repository origin/feature/LXS-1289-ip.plx-redux Seen branch in repository origin/feature/LXS-1316-macro-wildcards Seen branch in repository origin/feature/LXS-1329-database-refactor Seen branch in repository origin/feature/LXS-1344-ldap-improvements Seen branch in repository origin/feature/LXS-1349-improved-failover Seen branch in repository origin/feature/LXS-1353-snpp-logging Seen branch in repository origin/feature/LXS-1357-apache-2.4.1 Seen branch in repository origin/feature/LXS-865-Excel-Link Seen branch in repository origin/merge/users Seen branch in repository origin/merge/webicons Seen branch in repository origin/preview Seen branch in repository origin/release Commencing build of Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Checking out Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Trying to fetch ClientUpdates into /var/lib/jenkins/jobs/Lynx/workspace/lynx/ClientUpdates Fetching upstream changes from cs:lynx-client-updates Trying to fetch Lynxnet into /var/lib/jenkins/jobs/Lynx/workspace/lynx/Lynxnet Fetching upstream changes from cs:lynx-net Trying to fetch TrueUpdate into /var/lib/jenkins/jobs/Lynx/workspace/lynx/TrueUpdate Fetching upstream changes from cs:lynx-trueupdate FATAL: Command "git submodule update" returned status code 1: stdout: Cloning into ClientUpdates... Submodule path 'ClientUpdates': checked out 'ae2f708d6d69a30e6a54c77b01f0085ab9305000' stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: Cloning into ClientUpdates... Submodule path 'ClientUpdates': checked out 'ae2f708d6d69a30e6a54c77b01f0085ab9305000' stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.submoduleUpdate(GitAPI.java:388) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1303) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1413) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) {noformat} The second time: {noformat} Started by an SCM change Building in workspace /var/lib/jenkins/jobs/Lynx/workspace Checkout:workspace / /var/lib/jenkins/jobs/Lynx/workspace - hudson.remoting.LocalChannel@aa0ff27 Using strategy: Default Last Built Revision: Revision 15f062624b185b08d695a0949ede1431fe75bdd5 (origin/feature/LXS-1289-ip.plx-redux) Fetching changes from 1 remote Git repository Fetching upstream changes from cs:lynx Pruning obsolete local branches Seen branch in repository origin/HEAD Seen branch in repository origin/LXS/000-dbic-error Seen branch in repository origin/bug/LXS-000-WebIcons-Pass2Frew Seen branch in repository origin/bug/LXS-1053-Check-in-Primary Seen branch in repository origin/bug/LXS-1093-user-password Seen branch in repository origin/bug/LXS-1094-Account-cleanup Seen branch in repository origin/bug/LXS-1139-crash Seen branch in repository origin/bug/LXS-1327-incorrect-sms-errors Seen branch in repository origin/bug/LXS-1352-snpp-strip-newlines-and-unicode Seen branch in repository origin/bug/LXS-432-Type-Macro Seen branch in repository origin/bug/LXS-504-Excel-Openings Seen branch in repository origin/bug/LXS-774-Shared-RO Seen branch in repository origin/bug/LXS-948-Log-Shows-Dest-twice Seen branch in repository origin/bug/LXS-948-log-duplication Seen branch in repository origin/bug/LXS-971-D-Drive Seen branch in repository origin/bug/LXS-976-Excel-Button Seen branch in repository origin/feature/LXS-1060-Active-Dir-SubUsers Seen branch in repository origin/feature/LXS-1064-Remove-AD-Import Seen branch in repository origin/feature/LXS-1093-User-Edits Seen branch in repository origin/feature/LXS-1094-Account-Cleanup Seen branch in repository origin/feature/LXS-1096-ReadOnly Seen branch in repository origin/feature/LXS-1111-New-WebIcon Seen branch in repository origin/feature/LXS-1111-Web-Icon Seen branch in repository origin/feature/LXS-1111-jason-fix Seen branch in repository origin/feature/LXS-1111-web-icon-group Seen branch in repository origin/feature/LXS-1145-remove-theme-and-news Seen branch in repository origin/feature/LXS-1146-remove-find-Lynxnet Seen branch in repository origin/feature/LXS-1196-client-database Seen branch in repository origin/feature/LXS-1198-client-testing Seen branch in repository origin/feature/LXS-1214-AlarmState Seen branch in repository origin/feature/LXS-1289-ip.plx-redux Seen branch in repository origin/feature/LXS-1316-macro-wildcards Seen branch in repository origin/feature/LXS-1329-database-refactor Seen branch in repository origin/feature/LXS-1344-ldap-improvements Seen branch in repository origin/feature/LXS-1349-improved-failover Seen branch in repository origin/feature/LXS-1353-snpp-logging Seen branch in repository origin/feature/LXS-1357-apache-2.4.1 Seen branch in repository origin/feature/LXS-865-Excel-Link Seen branch in repository origin/merge/users Seen branch in repository origin/merge/webicons Seen branch in repository origin/preview Seen branch in repository origin/release Commencing build of Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Checking out Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Trying to fetch ClientUpdates into /var/lib/jenkins/jobs/Lynx/workspace/lynx/ClientUpdates Fetching upstream changes from cs:lynx-client-updates Trying to fetch Lynxnet into /var/lib/jenkins/jobs/Lynx/workspace/lynx/Lynxnet Fetching upstream changes from cs:lynx-net Trying to fetch TrueUpdate into /var/lib/jenkins/jobs/Lynx/workspace/lynx/TrueUpdate Fetching upstream changes from cs:lynx-trueupdate FATAL: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.submoduleUpdate(GitAPI.java:388) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1303) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1413) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) {noformat}

    Jenkins JIRA | 5 years ago | frew schmidt
    hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe'
  3. 0

    Sometimes developers accidentally forget to push a submodule and thus make it impossible to check out their changes completely. This causes jenkins to throw an exception and on the next build it merely tries again and will inevitably fail. Maybe we should make an option for failed submodules to fail the build and move on instead of throwing an exception. I'll paste in the console output when this happened to me here. The first time: {noformat} Started by an SCM change Building in workspace /var/lib/jenkins/jobs/Lynx/workspace Checkout:workspace / /var/lib/jenkins/jobs/Lynx/workspace - hudson.remoting.LocalChannel@aa0ff27 Using strategy: Default Last Built Revision: Revision 15f062624b185b08d695a0949ede1431fe75bdd5 (origin/feature/LXS-1289-ip.plx-redux) Fetching changes from 1 remote Git repository Fetching upstream changes from cs:lynx Pruning obsolete local branches Seen branch in repository origin/HEAD Seen branch in repository origin/LXS/000-dbic-error Seen branch in repository origin/bug/LXS-000-WebIcons-Pass2Frew Seen branch in repository origin/bug/LXS-1053-Check-in-Primary Seen branch in repository origin/bug/LXS-1093-user-password Seen branch in repository origin/bug/LXS-1094-Account-cleanup Seen branch in repository origin/bug/LXS-1139-crash Seen branch in repository origin/bug/LXS-1327-incorrect-sms-errors Seen branch in repository origin/bug/LXS-1352-snpp-strip-newlines-and-unicode Seen branch in repository origin/bug/LXS-432-Type-Macro Seen branch in repository origin/bug/LXS-504-Excel-Openings Seen branch in repository origin/bug/LXS-774-Shared-RO Seen branch in repository origin/bug/LXS-948-Log-Shows-Dest-twice Seen branch in repository origin/bug/LXS-948-log-duplication Seen branch in repository origin/bug/LXS-971-D-Drive Seen branch in repository origin/bug/LXS-976-Excel-Button Seen branch in repository origin/feature/LXS-1060-Active-Dir-SubUsers Seen branch in repository origin/feature/LXS-1064-Remove-AD-Import Seen branch in repository origin/feature/LXS-1093-User-Edits Seen branch in repository origin/feature/LXS-1094-Account-Cleanup Seen branch in repository origin/feature/LXS-1096-ReadOnly Seen branch in repository origin/feature/LXS-1111-New-WebIcon Seen branch in repository origin/feature/LXS-1111-Web-Icon Seen branch in repository origin/feature/LXS-1111-jason-fix Seen branch in repository origin/feature/LXS-1111-web-icon-group Seen branch in repository origin/feature/LXS-1145-remove-theme-and-news Seen branch in repository origin/feature/LXS-1146-remove-find-Lynxnet Seen branch in repository origin/feature/LXS-1196-client-database Seen branch in repository origin/feature/LXS-1198-client-testing Seen branch in repository origin/feature/LXS-1214-AlarmState Seen branch in repository origin/feature/LXS-1289-ip.plx-redux Seen branch in repository origin/feature/LXS-1316-macro-wildcards Seen branch in repository origin/feature/LXS-1329-database-refactor Seen branch in repository origin/feature/LXS-1344-ldap-improvements Seen branch in repository origin/feature/LXS-1349-improved-failover Seen branch in repository origin/feature/LXS-1353-snpp-logging Seen branch in repository origin/feature/LXS-1357-apache-2.4.1 Seen branch in repository origin/feature/LXS-865-Excel-Link Seen branch in repository origin/merge/users Seen branch in repository origin/merge/webicons Seen branch in repository origin/preview Seen branch in repository origin/release Commencing build of Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Checking out Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Trying to fetch ClientUpdates into /var/lib/jenkins/jobs/Lynx/workspace/lynx/ClientUpdates Fetching upstream changes from cs:lynx-client-updates Trying to fetch Lynxnet into /var/lib/jenkins/jobs/Lynx/workspace/lynx/Lynxnet Fetching upstream changes from cs:lynx-net Trying to fetch TrueUpdate into /var/lib/jenkins/jobs/Lynx/workspace/lynx/TrueUpdate Fetching upstream changes from cs:lynx-trueupdate FATAL: Command "git submodule update" returned status code 1: stdout: Cloning into ClientUpdates... Submodule path 'ClientUpdates': checked out 'ae2f708d6d69a30e6a54c77b01f0085ab9305000' stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: Cloning into ClientUpdates... Submodule path 'ClientUpdates': checked out 'ae2f708d6d69a30e6a54c77b01f0085ab9305000' stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.submoduleUpdate(GitAPI.java:388) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1303) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1413) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) {noformat} The second time: {noformat} Started by an SCM change Building in workspace /var/lib/jenkins/jobs/Lynx/workspace Checkout:workspace / /var/lib/jenkins/jobs/Lynx/workspace - hudson.remoting.LocalChannel@aa0ff27 Using strategy: Default Last Built Revision: Revision 15f062624b185b08d695a0949ede1431fe75bdd5 (origin/feature/LXS-1289-ip.plx-redux) Fetching changes from 1 remote Git repository Fetching upstream changes from cs:lynx Pruning obsolete local branches Seen branch in repository origin/HEAD Seen branch in repository origin/LXS/000-dbic-error Seen branch in repository origin/bug/LXS-000-WebIcons-Pass2Frew Seen branch in repository origin/bug/LXS-1053-Check-in-Primary Seen branch in repository origin/bug/LXS-1093-user-password Seen branch in repository origin/bug/LXS-1094-Account-cleanup Seen branch in repository origin/bug/LXS-1139-crash Seen branch in repository origin/bug/LXS-1327-incorrect-sms-errors Seen branch in repository origin/bug/LXS-1352-snpp-strip-newlines-and-unicode Seen branch in repository origin/bug/LXS-432-Type-Macro Seen branch in repository origin/bug/LXS-504-Excel-Openings Seen branch in repository origin/bug/LXS-774-Shared-RO Seen branch in repository origin/bug/LXS-948-Log-Shows-Dest-twice Seen branch in repository origin/bug/LXS-948-log-duplication Seen branch in repository origin/bug/LXS-971-D-Drive Seen branch in repository origin/bug/LXS-976-Excel-Button Seen branch in repository origin/feature/LXS-1060-Active-Dir-SubUsers Seen branch in repository origin/feature/LXS-1064-Remove-AD-Import Seen branch in repository origin/feature/LXS-1093-User-Edits Seen branch in repository origin/feature/LXS-1094-Account-Cleanup Seen branch in repository origin/feature/LXS-1096-ReadOnly Seen branch in repository origin/feature/LXS-1111-New-WebIcon Seen branch in repository origin/feature/LXS-1111-Web-Icon Seen branch in repository origin/feature/LXS-1111-jason-fix Seen branch in repository origin/feature/LXS-1111-web-icon-group Seen branch in repository origin/feature/LXS-1145-remove-theme-and-news Seen branch in repository origin/feature/LXS-1146-remove-find-Lynxnet Seen branch in repository origin/feature/LXS-1196-client-database Seen branch in repository origin/feature/LXS-1198-client-testing Seen branch in repository origin/feature/LXS-1214-AlarmState Seen branch in repository origin/feature/LXS-1289-ip.plx-redux Seen branch in repository origin/feature/LXS-1316-macro-wildcards Seen branch in repository origin/feature/LXS-1329-database-refactor Seen branch in repository origin/feature/LXS-1344-ldap-improvements Seen branch in repository origin/feature/LXS-1349-improved-failover Seen branch in repository origin/feature/LXS-1353-snpp-logging Seen branch in repository origin/feature/LXS-1357-apache-2.4.1 Seen branch in repository origin/feature/LXS-865-Excel-Link Seen branch in repository origin/merge/users Seen branch in repository origin/merge/webicons Seen branch in repository origin/preview Seen branch in repository origin/release Commencing build of Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Checking out Revision 2cf960767f0bcdcbab95a998aa0d953f3b29db1d (origin/LXS/000-dbic-error) Trying to fetch ClientUpdates into /var/lib/jenkins/jobs/Lynx/workspace/lynx/ClientUpdates Fetching upstream changes from cs:lynx-client-updates Trying to fetch Lynxnet into /var/lib/jenkins/jobs/Lynx/workspace/lynx/Lynxnet Fetching upstream changes from cs:lynx-net Trying to fetch TrueUpdate into /var/lib/jenkins/jobs/Lynx/workspace/lynx/TrueUpdate Fetching upstream changes from cs:lynx-trueupdate FATAL: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe' at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.submoduleUpdate(GitAPI.java:388) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1303) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1413) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) {noformat}

    Jenkins JIRA | 5 years ago | frew schmidt
    hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I've created a matrix project, though currently with only one target for the variable 'box_type'. To this project, I've added two Git repositories using the Multiple SCMs plugin. I've given each repository a "Local subdirectory for repo" so that they will check out side-by-side in the workspace. On running the build, the initial checkout of both repos into the standard workspace location succeeds. When running the configuration matrix, I get the following error: {code} Checkout:centos6-vagrant-box / /var/lib/jenkins/jobs/test_puppet/workspace/box_type/centos6-vagrant-box - hudson.remoting.LocalChannel@42dd67cf Using strategy: Default Last Built Revision: Revision 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 (origin/HEAD, origin/master) Fetching changes from 1 remote Git repository Fetching upstream changes from git@github.com:scalefactory/puppet-with-cukes.git Commencing build of Revision 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 (origin/HEAD, origin/master) Checking out Revision 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 (origin/HEAD, origin/master) FATAL: Could not checkout null with start point 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 hudson.plugins.git.GitException: Could not checkout null with start point 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 at hudson.plugins.git.GitAPI.checkoutBranch(GitAPI.java:872) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1280) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1434) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: hudson.plugins.git.GitException: Command "/tmp/git-with-logging checkout -f 6be03c6886d1db90bfc94a10d4d6098fe5b84b77" returned status code 128: stdout: stderr: fatal: reference is not a tree: 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:751) at hudson.plugins.git.GitAPI.checkoutBranch(GitAPI.java:859) ... 13 more {code} There are two repositories at play here: "cumberbatch" and "puppet-with-cukes". The revision SHA of 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 is the latest revision of "cumberbatch", however the failing "git checkout" command is attempting to use that SHA with the "puppet-with-cukes" repository, and I believe this is the reason for the failure condition.

    Jenkins JIRA | 5 years ago | Jon Topper
    hudson.plugins.git.GitException: Could not checkout null with start point 6be03c6886d1db90bfc94a10d4d6098fe5b84b77
  6. 0

    I've created a matrix project, though currently with only one target for the variable 'box_type'. To this project, I've added two Git repositories using the Multiple SCMs plugin. I've given each repository a "Local subdirectory for repo" so that they will check out side-by-side in the workspace. On running the build, the initial checkout of both repos into the standard workspace location succeeds. When running the configuration matrix, I get the following error: {code} Checkout:centos6-vagrant-box / /var/lib/jenkins/jobs/test_puppet/workspace/box_type/centos6-vagrant-box - hudson.remoting.LocalChannel@42dd67cf Using strategy: Default Last Built Revision: Revision 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 (origin/HEAD, origin/master) Fetching changes from 1 remote Git repository Fetching upstream changes from git@github.com:scalefactory/puppet-with-cukes.git Commencing build of Revision 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 (origin/HEAD, origin/master) Checking out Revision 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 (origin/HEAD, origin/master) FATAL: Could not checkout null with start point 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 hudson.plugins.git.GitException: Could not checkout null with start point 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 at hudson.plugins.git.GitAPI.checkoutBranch(GitAPI.java:872) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1280) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264) at hudson.FilePath.act(FilePath.java:832) at hudson.FilePath.act(FilePath.java:814) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1434) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: hudson.plugins.git.GitException: Command "/tmp/git-with-logging checkout -f 6be03c6886d1db90bfc94a10d4d6098fe5b84b77" returned status code 128: stdout: stderr: fatal: reference is not a tree: 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:751) at hudson.plugins.git.GitAPI.checkoutBranch(GitAPI.java:859) ... 13 more {code} There are two repositories at play here: "cumberbatch" and "puppet-with-cukes". The revision SHA of 6be03c6886d1db90bfc94a10d4d6098fe5b84b77 is the latest revision of "cumberbatch", however the failing "git checkout" command is attempting to use that SHA with the "puppet-with-cukes" repository, and I believe this is the reason for the failure condition.

    Jenkins JIRA | 5 years ago | Jon Topper
    hudson.plugins.git.GitException: Could not checkout null with start point 6be03c6886d1db90bfc94a10d4d6098fe5b84b77

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "git submodule update" returned status code 1: stdout: stderr: fatal: reference is not a tree: 371a927a4268afc72316e31f9111ad5463305af9 Unable to checkout '371a927a4268afc72316e31f9111ad5463305af9' in submodule path 'cgi/exe'

      at hudson.plugins.git.GitAPI.launchCommandIn()
    2. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:779)
      2. hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741)
      3. hudson.plugins.git.GitAPI.submoduleUpdate(GitAPI.java:388)
      4. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1303)
      5. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1264)
      5 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:832)
      2. hudson.FilePath.act(FilePath.java:814)
      2 frames
    4. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264)
      1 frame
    5. org.jenkinsci.plugins
      MultiSCM.checkout
      1. org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)
      4. hudson.model.Run.run(Run.java:1413)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:238)
      7 frames