#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2017
    Posts
    2
    Rep Power
    0

    how to get the list of plugins in jenkins


    hi all,

    i am a perl beginner and i have a scenario where in i am supposed to open the jenins URL which opens up as an XML file and i have to now save the file and parse it to get the plugins.
    How can i do that
    https://<jenkins-link>/pluginManager/api/xml?depth=1 is the API that we need to parse
    i have never tried anything like this before and have no idea were to start..
    Please help here
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Apr 2009
    Posts
    2,232
    Rep Power
    1296
    You'll want to use an XML parser and there are a number of them to choose from. Here are the 3 most popular.

    XML:LibXML
    XML::Twig
    XML::Parser

IMN logo majestic logo threadwatch logo seochat tools logo