Hi,
I am using Hashicorp Nomad version 1.9.~. I am running a periodic job and am mounting /usr/local/fccreport into the chrooted enviroment. The ssh_keys are stored in /usr/local/fccreport.
My artifact stanza looks like this:
artifact {
source = “git::git@wiki.sysmetrics.testing.com:fcc/fcc.git”
destination = “/usr/local/fccreport”
options {
sshkey = “${base64encode(file(pathexpand(”/usr/local/fccreport/.ssh/id_rsa")))}"
}
}
The files from the repo are cloned into /usr/local/fccreport but I receive the following error:
Failed Artifact Download failed to download artifact “git::git@wiki.sysmetrics.testing.com:fcc/fcc.git”: getter subprocess failed: exit status 1: failed to download artifact: error downloading ‘ssh://[git@wiki.sysmetrics.testingcom/fcc/fcc.git?sshkey=redacted]
(http://git@wiki.sysmetrics.testing.com/fcc/fcc.git?sshkey=redacted)’:
/usr/bin/git exited with 128: fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
Has anyone seen this issue or can provide insight.
Thank you,
Tom