Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
150 views
in Technique[技术] by (71.8m points)

Unversioned files due to "?" folder automatically generated when compiling the git repo in a jenkins pipeline compiled in docker

I am configuring Continuous Delivery with gradle using the gradle release plugin. This was working quite well using Travis CI. I am testing the same CD pipeline with Jenkins pipeline compiling everything in a docker container (gradle:4.7.0-jdk8). But I am receiving this error:

Execution failed for task ':t_gradle-release-example_release:checkCommitNeeded'.
> You have unversioned files:
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ?? ?/
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Of course there is no such directory in the repo and it appears when compiling the repository. The repo is available in GitHub. As a workaround I removed the "?" folder (I can also include it in the .gitignore), but I need to know why this is happening in order to avoid the same issue in future pipelines.

UPDATE: It is happening to me also in GitLab. Any clue?

UPDATE 2: Inside the "?" folder there are three folders ".sonar",".gradle",".m2". Some volumes are shared between containers to cache dependencies. Could it be the reason?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This issue popped up in our build pipeline without any changes on our part.

We added ?/ to our .gitignore and this resolved the issue for us


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...