Fatal Error when updating submodule using GIT

后端 未结 8 946
庸人自扰
庸人自扰 2021-01-30 08:45

I am trying to update the submodules of this git repositary but I keep getting a fatal errors:

[root@iptlock ProdigyView]# git submodule update --recursive
Cloni         


        
8条回答
  •  有刺的猬
    2021-01-30 09:27

    You can manually pass in the key in Build --> "Execute shell" section of jenkins job :

    ssh-agent bash -c 'ssh-add {path_to_private_key}; git submodule update --init --recursive'

    Example:

    ssh-agent bash -c 'ssh-add /var/lib/jenkins/.ssh/jenkins_rsa; git submodule update --init --recursive'

提交回复
热议问题