I don't know of a way to inject yourself prior to a shared pipeline library.

On Tue, Sep 19, 2017 at 2:37 PM Elifarley Cruz <elifar...@gmail.com> wrote:

> Thanks, that worked as you described, but what if I need to perform a
> script BEFORE the code of a global shared library is checked out?
>
>
> On Monday, September 11, 2017 at 10:51:47 PM UTC-3, Mark Waite wrote:
>
>> As far as I understand it, you'll need to prevent the implicit checkout
>> that is part of declarative, and then perform the checkout yourself within
>> the declarative pipeline.
>>
>> Refer to declarative options
>> <https://jenkins.io/doc/book/pipeline/syntax/#options> and the
>> skipDefaultCheckout.
>>
>> Mark Waite
>>
>> On Mon, Sep 11, 2017 at 7:32 PM Elifarley Cruz <elif...@gmail.com> wrote:
>>
> The checkout scm step, as I understand it, is automatically executed in a
>>> declarative pipeline. You don't have to declare it.
>>>
>>> However, I need to execute a shell script just before checking out the
>>> code.
>>>
>>> How can I achieve this in a declarative pipeline?
>>>
>>> Thanks!
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/42c32096-03db-474f-996e-9a7008e9c45a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/42c32096-03db-474f-996e-9a7008e9c45a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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/b7255966-a7fb-4691-8ba9-65528ab67465%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/b7255966-a7fb-4691-8ba9-65528ab67465%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAO49JtECr55xvGTDfBjMiFQKmYb2twDVN7MoMvRRu%3DbX3YhUWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to