Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Perl shared library for Jenkins

by josthi (Initiate)
on May 09, 2020 at 17:52 UTC ( #11116615=perlquestion: print w/replies, xml ) Need Help??

josthi has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I can see Jenkins shared libraries are written in Groovy. Is there any way to create shared libraries in Perl for Jenkins? Cheers, Joseph

Replies are listed 'Best First'.
Re: Perl shared library for Jenkins
by haukex (Bishop) on May 09, 2020 at 20:00 UTC
    I can see Jenkins shared libraries are written in Groovy. Is there any way to create shared libraries in Perl for Jenkins?

    There are a few modules on CPAN that have to do with Jenkins. Perhaps one of them is appropriate for you?

Re: Perl shared library for Jenkins
by davido (Cardinal) on May 10, 2020 at 15:49 UTC

    In my experience it's best to keep the Groovy based Jenkinsfile small, and to allow it to invoke more robust, testable scripts. I write the scripts that the Jenkinsfile invokes as modulinos, so that they can be tested more in isolation.


    Dave

      Sorry for late reply Thanks Dave. Will follow the same. Cheers, Joseph

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11116615]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-10-20 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (82 votes). Check out past polls.

    Notices?