-
Type:
Task
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: pipeline, pipeline-github-plugin
-
None
Hi Guys,
Â
  I am unable to find a solution to merge two git branches in a pipeline as script code. Below is my code developed so far to checkout and merge. Only chekcout step is working. Please advise what can i need to complete the merge process in one stage.
Â
Â
stage("merge") { Â Â Â Â Â Â steps { Â Â Â Â Â Â checkout( [ Â Â Â Â Â Â Â Â $class: 'GitSCM', Â Â Â Â Â Â Â Â branches: [[name: "dev"]], Â Â Â Â Â Â Â Â userRemoteConfigs: [ Â Â Â Â Â Â Â Â Â Â [credentialsId: 'creds', Â Â Â Â Â Â Â Â Â Â Â Â Â Â url: 'url.git'] Â Â Â Â Â Â Â Â Â Â Â Â ] Â Â Â Â Â Â Â Â Â Â ] Â Â Â Â Â Â Â Â ) Â Â Â Â Â Â } Â Â Â Â }
Â
Â
Thanks,
kumar.