Both the Wikidata Query Builder and the Wikidata Query Service UI require an extra CI build job before they can be deployed (initially created in T160943). However, that job currently run several shell commands, mostly related to git, directly as the Jenkins User, which is prone to cause problems. See for example T328441.
Ideally, these shell commands would move to a file in the respective repositories and then would be invoked from a docker container.
For more context, see the comments on this patch: Allow our own repo as safe to git (Ife520c20), and see also the IRC logs of channel #wikimedia-releng for 2023-02-01 starting at 09:43:07: https://wm-bot.wmflabs.org/libera_logs/%23wikimedia-releng/20230201.txt.