Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildFiles arent uploaded correctly #725

Open
anna-git opened this issue Mar 27, 2024 · 8 comments
Open

BuildFiles arent uploaded correctly #725

anna-git opened this issue Mar 27, 2024 · 8 comments

Comments

@anna-git
Copy link

buildFiles:
- "../../some-path/**;/some-path"
version agent (both machines):
0.2.0-alpha.24114.2
version controller
0.2.0-alpha.24114.2
os: linux ubuntu.20.04-x64

Most of the files are not uploaded. Although in the logs they appeared succesfully uploaded, we receive 200. Only .xml and .conf extensions are uploaded. Other types like dll, .so are never uploaded

@sebastienros
Copy link
Member

Can you check if you have a .gitignore file that could filter that out? Try to remove it if so and see if that still happen. I don't think "buildfiles" argument should do that but that could be the reason

@anna-git
Copy link
Author

even with an empty .gitignore, the files are still not present 🤔

@sebastienros
Copy link
Member

Thanks, I will try to repro.
Note that "buildFiles" should be source code, required for the build step. If you are trying to upload dll/so files then you should use outputFiles instead.

@anna-git
Copy link
Author

Example of files in source:
-rw-r--r-- 1 ubuntu ubuntu 8577 Mar 27 18:40 MyFile.deps.json
-rw-r--r-- 1 ubuntu ubuntu 20992 Mar 27 18:40 MyFile.dll
-rw-r--r-- 1 ubuntu ubuntu 13664 Mar 27 18:40 MyFile.pdb
-rw-r--r-- 1 ubuntu ubuntu 1291 Mar 27 18:40 MyFile.MSBuild.xml
-rw-r--r-- 1 ubuntu ubuntu 6986752 Mar 27 18:40 MyFile.dll
-rw-r--r-- 1 ubuntu ubuntu 2425664 Mar 27 18:40 MyFile.pdb
-rw-r--r-- 1 ubuntu ubuntu 5922784 Mar 27 18:40 MyFile.xml

Only the smallest one is uploaded on destination:
-rw------- 1 ubuntu ubuntu 1291 Mar 27 18:40 MyFile.MSBuild.xml

@anna-git
Copy link
Author

Ok I'll try output files thanks

@anna-git
Copy link
Author

seems to be the same 🤔

@anna-git
Copy link
Author

the thing is we used them like that:

          buildFiles:
          - "../../binaries/**;{{ linuxPath }}/{{ commit_hash }}/binaries"

if I replace buildFiles with outputFiles the files dont seem to be copied in the right destination anymore. In the logs, we just see

File added: ../../binaries/net6.0/MyFile.deps.json

Before we used to see:

[09:02:13.616] Uploading ../../binaries/net6.0/MyFile.deps.json;/home/ubuntu/2c36cb68fd3cebe2380efe2cb983e3d9386c8d75/binaries/MyFile.deps.json (5KB)

I dont know if outputFiles support destinations the same..

@anna-git
Copy link
Author

but in any case all dll / so files are missing without Outfiles as well even if it says it's adding them 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants