Facing issue while building the ear file from Jenkins for a Mavenize ADF project. Its saying that unable to fetch the code from GitHub repository and also something about insufficient permission whereas I can successfully commit and pull code from GitHub using Git bash. Given below is the error log.
Building remotely on dev-sandbox-lx74-Linux in workspace /home/jenkins/workspace/xxxxx
Fetching changes from the remote Git repository
Fetching upstream changes from http://githuben.intranet.xxxxxxx.com/xxxxxxxx/xxxxxxxx.git
FATAL: Failed to fetch fromhttp://githuben.intranet.xxxxxxx.com/xxxxxxxx/xxxxxxxx.git
hudson.plugins.git.GitException: Failed to fetch from http://githuben.intranet.xxxxxxx.com/xxxxxxxx/xxxxxxxx.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557)
at hudson.model.Run.execute(Run.java:1665)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:246)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://githuben.intranet.xxxxxxx.com/xxxxxxxx/xxxxxxxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: remote: Counting objects: 70, done. [K
remote: Compressing objects: 11% (1/9) [K
remote: Compressing objects: 22% (2/9) [K
remote: Compressing objects: 33% (3/9) [K
remote: Compressing objects: 44% (4/9) [K
remote: Compressing objects: 55% (5/9) [K
remote: Compressing objects: 66% (6/9) [K
remote: Compressing objects: 77% (7/9) [K
remote: Compressing objects: 88% (8/9) [K
remote: Compressing objects: 100% (9/9) [K
remote: Compressing objects: 100% (9/9), done. [K
remote: Total 70 (delta 27), reused 27 (delta 27), pack-reused 31 [K
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1148)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1018)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:74)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:207)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:274)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
at hudson.remoting.Engine$1$1.run(Engine.java:63)
at java.lang.Thread.run(Thread.java:809)
Please help.