crank icon indicating copy to clipboard operation
crank copied to clipboard

BuildFiles arent uploaded correctly

Open anna-git opened this issue 1 year ago • 8 comments

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

anna-git avatar Mar 27 '24 18:03 anna-git

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

sebastienros avatar Mar 27 '24 18:03 sebastienros

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

anna-git avatar Mar 27 '24 18:03 anna-git

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.

sebastienros avatar Mar 27 '24 18:03 sebastienros

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 avatar Mar 27 '24 18:03 anna-git

Ok I'll try output files thanks

anna-git avatar Mar 27 '24 18:03 anna-git

seems to be the same 🤔

anna-git avatar Mar 27 '24 22:03 anna-git

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 avatar Mar 28 '24 09:03 anna-git

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

anna-git avatar Mar 28 '24 11:03 anna-git