How to get a list of installed Jenkins plugins with name and version pair

You can retrieve the information using the Jenkins Script Console which is accessible by visiting http://<jenkins-url>/script. (Given that you are logged in and have the required permissions). Enter the following Groovy script to iterate over the installed plugins and print out the relevant information: Jenkins.instance.pluginManager.plugins.each{ plugin -> println (“${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()}”) } It will print … Read more

Is there a way to keep Hudson / Jenkins configuration files in source control?

Most helpful Answer There is a plugin called SCM Sync configuration plugin. Original Answer Have a look at my answer to a similar question. The basic idea is to use the filesystem-scm-plugin to detect changes to the xml-files. Your second part would be committing the changes to SVN. EDIT: If you find a way to … Read more

How do I make a Jenkins job start after multiple simultaneous upstream jobs succeed?

Pipeline plugin You can use the Pipeline Plugin (formerly workflow-plugin). It comes with many examples, and you can follow this tutorial. e.g. // build stage ‘build’ … // deploy stage ‘deploy’ … // run tests in parallel stage ‘test’ parallel ‘functional’: { … }, ‘performance’: { … } // promote artifacts stage ‘promote’ … Build … Read more

Jenkins HTML Publisher Plugin: No external links with Jenkins 1.643

The issue you’re seeing is likely related to recent security fixes. See the Configuring Content Security Policy wiki page for details on how to relax the Jenkins configuration. The CSP header sent by Jenkins can be modified by setting the system property hudson.model.DirectoryBrowserSupport.CSP: If its value is the empty string, e.g. java -Dhudson.model.DirectoryBrowserSupport.CSP= -jar jenkins.war … Read more

Jenkins – HTML Publisher Plugin – No CSS is displayed when report is viewed in Jenkins Server

Figured out the issue. Sharing it here for other users. CSS is stripped out because of the Content Security Policy in Jenkins. (https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy) The default rule is set to: sandbox; default-src ‘none’; img-src ‘self’; style-src ‘self’; This rule set results in the following: No JavaScript allowed at all No plugins (object/embed) allowed No inline CSS, … Read more