Own plugin - add to pipeline

24 views
Skip to first unread message

Tomas Pekarovic

unread,
Mar 15, 2017, 9:59:33 AM3/15/17
to Jenkins Users
Hello all,

 I recently started to use pipeline (jenkins 2+) to create better and easier to use build processes.
On latest project I found one problem. We have our own GIT PLUGIN that do some other stuff as others plugins.

I'm looking for a way how to use this plugin in pipeline script. Is this even possible? There is git/svn/generalSCM but I just can't find way how to start/use our own plugin.

Thanks for help

Mark Waite

unread,
Mar 15, 2017, 10:22:26 AM3/15/17
to Jenkins Users
Conceptually, you may be able to use the "checkout" step from pipeline and replace the reference to the GitSCM class with a reference to the class which implements your git plugin.  Use the "Pipeline Syntax" in your Jenkins installation, choose "checkout" as the step, choose Git, then generate the syntax to see the example with the GitSCM class.

Mark Waite

--
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/99e17d36-c953-4a23-8380-7ce7acbbe5d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomas Pekarovic

unread,
Mar 16, 2017, 6:45:38 AM3/16/17
to jenkins...@googlegroups.com
thanks.
I do as you wrote but now I'm stuck in freezing step. No output, no error, just hanging step. I just can't even debug it 



On Wed, Mar 15, 2017 at 3:22 PM, Mark Waite <mark.ea...@gmail.com> wrote:
Conceptually, you may be able to use the "checkout" step from pipeline and replace the reference to the GitSCM class with a reference to the class which implements your git plugin.  Use the "Pipeline Syntax" in your Jenkins installation, choose "checkout" as the step, choose Git, then generate the syntax to see the example with the GitSCM class.

Mark Waite

On Wed, Mar 15, 2017 at 7:59 AM Tomas Pekarovic <ala...@gmail.com> wrote:
Hello all,

 I recently started to use pipeline (jenkins 2+) to create better and easier to use build processes.
On latest project I found one problem. We have our own GIT PLUGIN that do some other stuff as others plugins.

I'm looking for a way how to use this plugin in pipeline script. Is this even possible? There is git/svn/generalSCM but I just can't find way how to start/use our own plugin.

Thanks for help

--
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+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/nwmjk77Kvnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtG9zCO2J3emNmNEcd-jG%3DOiB040pynk8%2BT475bDjmB1gw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages