如何通过JAVA将GitLab生成的测试构件复制到Box目录?

huangapple go评论59阅读模式
英文:

How can I copy GitLab-generated test artifacts to a Box directory via JAVA?

问题

我想将我的测试输出从/test-output/report/index.html复制到Box目录。我正在使用Gitlab,在测试阶段生成了资产,但未能复制到Box目录。

是否有办法通过JAVA访问工件?
如果不行,在这种情况下,Gitlab是否可以访问只能通过TOKEN访问的Box目录?

谢谢

我尝试使用JAVA代码从test-output/report/index.html复制文件,它按预期工作,但正如我提到的,当它推送到GIT时不起作用。

英文:

I would like to copy my Test Output from /test-oputput/report/index.html to Box directory. I am using Gitlab and in test Stage I generated Assets but failed to copy to box.

Is there any way to access artifacts via JAVA?
If not in such cases can gitlab access Box directory which is accessible via TOKEN only?

Thanks

I have tried copying file using JAVA code from test-output/report/index.html, and it is working as expected but as I mentioned it is not working when it PUSHed to GIT.

答案1

得分: 0

最终,我通过将目录在Git服务器上设为可见来解决了这个问题。

英文:

Finally I was able to resolve this issue by making directory visible in Git Server.

huangapple
  • 本文由 发表于 2023年5月28日 13:55:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76350139.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定