Re: Multibranch Pipeline git events on PR

2021-03-14 Thread Gautam, Rishi
This was finally solved by doing* unshallow clone* of git repositories.
*Configure Multibranch Pipeline Job > Branch Sources > Behaviours > Add
> Advanced clone behaviours > uncheck shallow clone *
[image: image.png]

Thank you everyone for the help.

On Tue, Feb 16, 2021 at 2:26 AM Mark Waite 
wrote:

> The multibranch pipeline implementation on one or more of the branch
> providers intentionally narrows the refspec of the repository while cloning
> it into the workspace.  The narrowed refspec usually includes only a single
> branch so that git does not waste effort retrieving changes that are not
> related to the branch being built.  That narrow refspec
>
> If you need more branches available in the workspace, you may need to use
> a checkout scm step within your pipeline definition that specifically
> chooses to use the wider refspec that you need for the additional branches
> you're trying to access.
>
> Refspecs are described in the "repostories"
> <https://plugins.jenkins.io/git/#using-repositories> section of the git
> plugin documentation and in the command line git documentation
> <https://git-scm.com/book/en/v2/Git-Internals-The-Refspec>.
>
> Example checkout steps can be generated with the Pipeline Syntax snippet
> generator
> <https://www.jenkins.io/doc/book/pipeline/getting-started/#snippet-generator>
> from your Jenkins controller.  A brief video clip on using the snippet
> generator is linked from the git plugin documentation
> <https://plugins.jenkins.io/git/#pipelines>.
>
> Mark Waite
>
> On Mon, Feb 15, 2021 at 12:57 PM Ivan Fernandez Calvo <
> kuisathave...@gmail.com> wrote:
>
>> Check if you have set git references on the job, IIRC the git plugin
>> always make a `git fetch —all`
>>
>> El lunes, 15 de febrero de 2021 a las 10:49:21 UTC+1, Rishi Gautam
>> escribió:
>>
>>> anyone has any idea please
>>>
>>> On Wed, Feb 10, 2021 at 4:16 PM Gautam, Rishi 
>>> wrote:
>>>
>>>> I was trying to carry out git operations on *any other branch *than
>>>> the PR source/destination branch in a jenkins multibranch pipeline.
>>>> When I scanned the branches inside the PR build job, I didn't see any
>>>> other branches. I only got below branches on* git branch -a *command
>>>> on pipeline:
>>>>
>>>> * PR-2
>>>>   remotes/origin/PR-2
>>>>   remotes/upstream/stage
>>>>
>>>>
>>>> There are other branches like test,master. Are there any workarounds to 
>>>> this?
>>>>
>>>> --
>> 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/691d1a51-5ae2-4004-8e56-7c3fa3f6a17an%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/691d1a51-5ae2-4004-8e56-7c3fa3f6a17an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CAO49JtHHg-XkDiqiStxFfHjuf1ANAKAjLHGMLx75RvHr%3DyfARQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHHg-XkDiqiStxFfHjuf1ANAKAjLHGMLx75RvHr%3DyfARQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAF4beLj64_d0voM0%2BBtnyQRzhHxKXL3avKsr4Y%2B96p5FFbB_oQ%40mail.gmail.com.


Re: Multibranch Pipeline git events on PR

2021-02-15 Thread Gautam, Rishi
anyone has any idea please

On Wed, Feb 10, 2021 at 4:16 PM Gautam, Rishi 
wrote:

> I was trying to carry out git operations on *any other branch *than the
> PR source/destination branch in a jenkins multibranch pipeline.
> When I scanned the branches inside the PR build job, I didn't see any
> other branches. I only got below branches on* git branch -a *command on
> pipeline:
>
> * PR-2
>   remotes/origin/PR-2
>   remotes/upstream/stage
>
>
> There are other branches like test,master. Are there any workarounds to this?
>
>

-- 
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/CAF4beLjrC-Yqd%3DSDqHk-WJEUSnm9%3Dyi4D0srBmdks7SDojrjTA%40mail.gmail.com.


Multibranch Pipeline git events on PR

2021-02-10 Thread Gautam, Rishi
I was trying to carry out git operations on *any other branch *than the PR
source/destination branch in a jenkins multibranch pipeline.
When I scanned the branches inside the PR build job, I didn't see any other
branches. I only got below branches on* git branch -a *command on pipeline:

* PR-2
  remotes/origin/PR-2
  remotes/upstream/stage


There are other branches like test,master. Are there any workarounds to this?

-- 
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/CAF4beLgO26Pw2fQOMvXLxTpop%2B9oDjqUsxkEALKsApE6zNfMRw%40mail.gmail.com.


Re: Authorization on Multibranch Pipeline

2020-12-01 Thread Gautam, Rishi
some way to restrict User1 to  trigger the build button from console on
master branch?

On Wed, Dec 2, 2020 at 2:03 AM Jibsan Joel Rosa Toirac 
wrote:

> Well I solved the problem, I used "sudo" before the commands and it
> started to work, anyhow I ran the command
> "root/.sdkman/candidates/grails/3.3.2/bin/grails war" and all started to
> work. Thanks for your help
>
> El mar, 1 dic 2020 a las 10:30, Rishi Gautam ()
> escribió:
>
>> Is there any way to enable authorization to build only specific
>> branch(job) on jenkins multbranch pipeline?
>>
>> Use Case:
>> User1: can only build test branch.
>> User2: can build both test and master branch.
>>
>> It would be very helpful to get the solution. Thanks in advance.
>>
>> --
>> 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/86a58043-d55c-40ac-ae59-3f9e185b53bbn%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAAFuM4EEgdmSJZKbksDY05WB1qKY1-Oyp3_0puU9zHhCocwG-Q%40mail.gmail.com
> 
> .
>

-- 
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/CAF4beLiozXoWtgGp1zLJHeuzd-b0-H%3DbGmHtPzFmW-3d0h1D8A%40mail.gmail.com.


Re: Jenkins SAML with google

2020-10-14 Thread Gautam, Rishi
Thank you Ivan for responding, but that didn't worked for me as well.

On Wed, Oct 14, 2020 at 10:33 PM Ivan Fernandez Calvo <
kuisathave...@gmail.com> wrote:

> Hi,
>
> you have how to do it in the documentation of the plugin
> https://github.com/jenkinsci/saml-plugin/blob/master/doc/CONFIGURE.md#configuring-groups-security
>
> El miércoles, 14 de octubre de 2020 a las 13:52:07 UTC+2, Rishi Gautam
> escribió:
>
>> Using role based strategy, is there any way to give default permission to
>> all logged in users?
>> I used authenticated group but it is not working and always forwarded to
>> logout.
>>
>> Also, how to enable permission for groups in google?
>>
> --
> 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/83dd4f84-8b73-4412-b3cf-ba2d64cde25fn%40googlegroups.com
> 
> .
>

-- 
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/CAF4beLiW3rScjEyt0M6fU3ARF0BuNDBAn7Wy3koy4Oh24m8ROw%40mail.gmail.com.