https://jenkins.io/doc/pipeline/examples/#push-git-repo provides examples 
of ssh and https.

Mark Waite

On Thursday, March 21, 2019 at 12:51:42 PM UTC-6, Robert Nicholson wrote:
>
> I am able to tag the code locally but the push with credentials key based 
> seems to be an issue. 
>
> sshagent([‘credentialsKey]) { 
>    sh “git push origin master —tags” 
> } 
>
> this step errors with 
>
> fatal: could not read Username for ‘repository hostname’ : No such device 
> or address 
>
> Prior in my pipeline I have a repository defined using 
>
> Pipeline script from SCM where the url is defined with https://……..git 
>
> What is the recommended approach to push when using primary/public key 
> with git from JenkinsFile pipeline?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6f3e3e18-bfd6-43a6-ace8-b7beb36abb12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to