Re: Create and push new git branch?

2018-08-20 Thread Baptiste Mathus
On a related note, when you want to automate something, you generally want to think on how you'd do it 'manually'. Here as Mark summarized perfectly, you just use 'sh' facility. Where plugins shine and where they can and should be used is when there's a interesting integration to avoid writing

Re: Create and push new git branch?

2018-08-07 Thread Jack Brooks
Aha! Thanks so much! I will have to get busy on this. I was looking at it totally wrong. On Tue, Aug 7, 2018, 9:10 PM Mark Waite wrote: > The git plugin has no facility to support creating a branch or pushing a > branch from a Pipeline step. > > However, Pipeline can do it with an "sh" or "bat"

Re: Create and push new git branch?

2018-08-07 Thread Mark Waite
The git plugin has no facility to support creating a branch or pushing a branch from a Pipeline step. However, Pipeline can do it with an "sh" or "bat" step (depending on your platform). If your repository URL is an ssh URL ( g...@example.com:dir/repo.git or ssh: //g...@example.com/dir/repo.git

Create and push new git branch?

2018-08-07 Thread jbrooks
Hi folks, I've googled extensively, but I haven't seen any documentation or answers on how to create a new git branch in Pipeline. I must be missing something obvious, but the Git plugin page doesn't indicate anything other than checking out code with credentials. Has anyone here used Jenkins