How to get VCPKG working as system user (Jenkins buildserver) #44027
MatthijsPrent
started this conversation in
General
Replies: 1 comment 4 replies
-
You need to set env variable X_VCPKG_REGISTRIES_CACHE to a directory you have normal access to. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
We are trying to get VCPKG working on a project that also runs on the Jenkinst Buildserver. At the moment the .sln works good using Visual studio 2022 with VCPKG on the individual PC's. However on the buildserver it fails. One main difference is that the Jenkins slave is started by the system user and not by an individual user. At the moment the following command is used:
"C:\vcpkg\vcpkg-master\vcpkg.exe" install --x-wait-for-lock --triplet "x86-windows" --vcpkg-root "C:\vcpkg\vcpkg-master\\" "--x-manifest-root=W:\projectname\branches_feature_projectbranche\Driver\Driver\projectspecific\\" "--x-install-root=W:\projectname\branches_feature_projectbranche\Driver\Driver\projectspecific\vcpkg_installed\x86-windows\\"
When I run this command from a normal terminal, it succeeds. However when I run it as the user authority\system, it will fail with (at the moment) the following error:
I checked, it and the directory DOES exist. I am not sure what the right way is to fix this problem. I installed VCPGK by downloading the master from github, extracting this to C:\vcpkg and then running vcpkg integrate install.
Beta Was this translation helpful? Give feedback.
All reactions