Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git merge branch in jenkins pipeline

withCredentials([sshUserPrivateKey(credentialsId: '<credential-id>', keyFileVariable: 'SSH_KEY')]) {
   sh("git push origin <local-branch>:<remote-branch>")
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #merge #branch #jenkins #pipeline
ADD COMMENT
Topic
Name
9+9 =