jenkins-plugins
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
Jenkins: Is there any way to cleanup Jenkins workspace?
There is a way to cleanup workspace in Jenkins. You can clean up the workspace before build or after build. First, install Workspace Cleanup Plugin. To clean up the workspace before build: Under Build Environment, check the box that says Delete workspace before build starts. To clean up the workspace after the build: Under the … Read more
How to install a plugin in Jenkins manually
Yes, you can. Download the plugin (*.hpi file) and put it in the following directory: <jenkinsHome>/plugins/ Afterwards you will need to restart Jenkins.
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 to process a github webhook payload in Jenkins?
There are a few tricks to get this to work, and I found the (now defunct) chloky.com blog post to be helpful for most of it. Since it sounds like you’ve gotten the webhook communicating with your Jenkins instance at least, I’ll skip over those steps for now. But, if you want more detail, just … Read more
Display HTML page inside mail body with Email-ext plugin in Jenkins
Look deeper into the plugin documentations. No need for groovy here. Just make sure Content Type is set to HTML and add the following to the body: ${FILE,path=”my.html”} This will place the my.html content in your email body (location of file is relative to job’s workspace. I use it and it works well. I hope … 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