I am using images:ubuntu/bionic/cloud to create vm, and jnlp slave connected to Jenkins master.
By initiating the LxD vm, I am using cloud-init to write a file into “/root/.gitconfig” with content as followed.
[user] email = email@example.com name = username [url "git+ssh://firstname.lastname@example.org/"] insteadof = lp:
But when I run Jenkins configuration with “git clone lp:~project-team/project/+git/repository”, it shows the following error.
**14:06:18** ssh: Could not resolve hostname lp: Temporary failure in name resolution **14:06:18** fatal: Could not read from remote repository.
I printed out with whoami, and the user shows “root”.