I am trying to execute a Jenkins job , that pulls the code from git repo and then builds and execute integrations. During git fetch i am getting below issue. I have another Jenkins job, with same git repo configured , and its working fine there. I refered many threads, like Git submodule head 'reference is not a tree' error , but still not getting how in one Jenkins job , its working fine and failing in another
17:48:37 > git rev-parse origin/alternate^{commit} # timeout=10
17:48:37 Checking out Revision 8e4ffd8bb7596248efd4082ea529d42ce8022b1e (origin/alternate)
17:48:37 > git config core.sparsecheckout # timeout=10
17:48:37 > git checkout -f 8e4ffd8bb7596248efd4082ea529d42ce8022b1e # timeout=10
17:48:39 Commit message: "Merged 1 PR(s): pull request #1987 (disable batch node in dev/stage) from ksdwpta/disable_SYSE-6232 (https://git.corp.mycompany.com/Org/StorageService/pull/1987)"
17:48:39 First time build. Skipping changelog.
17:48:39 [EnvInject] - Inject global passwords.
17:48:39 [EnvInject] - Mask passwords that will be passed as build parameters.
17:48:39 [css-dev-esm-an1-deploytool-validation-demo] $ /bin/bash /apps/temp/jenkins1473873858039772764.sh
17:48:39 fatal: reference is not a tree: 9a895aa7b58bc033068f1a61b8dab66ab4faedd4
17:48:39 Build step 'Execute shell' marked build as failure
17:48:39 $ ssh-agent -k
17:48:39 unset SSH_AUTH_SOCK;
17:48:39 unset SSH_AGENT_PID;
17:48:39 echo Agent pid 20731 killed;
17:48:39 [ssh-agent] Stopped.
17:48:39 Recording test results
17:48:39 ERROR: Step ?Publish JUnit test result report? failed: No test report files were found. Configuration error?
17:48:39 Archiving artifacts
17:48:39 Notifying endpoint with url 'https://conduit.pipeline.corp.mycompany.com/v1/jenkins/status'
17:48:39 Started calculate disk usage of build
17:48:39 Finished Calculation of disk usage of build in 0 seconds
17:48:39 Started calculate disk usage of workspace
17:48:40 Finished Calculation of disk usage of workspace in 0 seconds
17:48:40 Finished: FAILURE