hiteswar kumar edited a comment on Bug JENKINS-12732

can share update for this issue?
i am also facing this isuee- copying .git objects from sub project to main project .

jenkins lTS:1.447.2
copy artifect plugin:1.24

at main project configure:
[trigger builds on other project]
-sub_project

[copy artifact from another project]
project name sub_project,

  • which build-Copy from workspace of latest completed build
  • enable Flatten directories

at sub project[sub_project]:
[Build->execute shell]
repo init and repo sync <git repository>

stacktrack at main project is below for your reference:

Build step 'Trigger/call builds on other projects' changed build result to SUCCESS
ERROR: Failed to copy artifacts from sub project: **
hudson.util.IOException2: Failed to copy /home/hudsonslave/root/workspace/sub_project/.repo/manifests/.git/objects/pack/pack-c5eb0a5b960078895187994136dfb4513c1878c4.idx to /home/hudsonslave/root/workspace/sub_project/pack-c5eb0a5b960078895187994136dfb4513c1878c4.idx
at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:97)
at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:248)
at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
at hudson.model.Build$RunnerImpl.build(Build.java:178)
at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:467)
at hudson.model.Run.run(Run.java:1404)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: java.io.FileNotFoundException: /home/hudsonslave/root/workspace/main_project/pack-c5eb0a5b960078895187994136dfb4513c1878c4.idx (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at hudson.FilePath$26.call(FilePath.java:1350)
at hudson.FilePath$26.call(FilePath.java:1346)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Build step 'Copy artifacts from another project' marked build as failure
Finished: FAILURE

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

Reply via email to