Re: Git Plugin - Merge before build, push on success and delete branch after

2017-01-11 Thread Mark Waite
If the repository is only accessible with a private key (RSA
authentication), then you'll need to make that private key available to the
job while it is running.  You may need to launch an ssh-agent from within
the job, or you might experiment with the ssh-agent plugin to see if it
could assist you.

You might also consider deleting the branch in a downstream job which runs
on a node dedicated to the "delete branch" task.

Mark Waite

On Wed, Jan 11, 2017 at 3:58 PM Robert Berta  wrote:

> Hi folks,
>
> I using Git Plugin 3.0.1.
> I selected merge before build option and specified the feature branch name
> I want to merge into master.
> After build is done the changes are pushed back to master .
> Now I want to delete the feature branch. I lost more than a day trying out
> a shell step to delete the branch. I failed because I need RSA
> authentification and can't change the user I run the job with.
> Help !!!
>
> Cheers,
> Robert
>
> --
> 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/765cc70a-7b07-4b5d-96bf-97f950d3660b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAO49JtFmkMRnWU%2B26KDGfDp4VszFKwvNOK-sWn6335cGWq6gcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Git Plugin - Merge before build, push on success and delete branch after

2017-01-11 Thread Robert Berta
Hi folks,

I using Git Plugin 3.0.1.
I selected merge before build option and specified the feature branch name 
I want to merge into master.
After build is done the changes are pushed back to master . 
Now I want to delete the feature branch. I lost more than a day trying out 
a shell step to delete the branch. I failed because I need RSA 
authentification and can't change the user I run the job with.
Help !!!

Cheers,
Robert

-- 
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/765cc70a-7b07-4b5d-96bf-97f950d3660b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.