Skip to content

Instantly share code, notes, and snippets.

@hallelujah
Created December 14, 2011 15:52
Show Gist options
  • Save hallelujah/1477126 to your computer and use it in GitHub Desktop.
Save hallelujah/1477126 to your computer and use it in GitHub Desktop.
Jenkins Hudson groovy script to create a view in BuildPipeline Plugin
// Use in jenkins v 1.443 and BuildPipeline Plugins version 1.2.3
import hudson.model.*
import hudson.views.*
import au.com.centrumsystems.hudson.plugin.buildpipeline.*
restrict_trigger_to_recent = false
v = new BuildPipelineView("view_name", "view_title", "initial_job_name", "number_of_display_builds", restrict_trigger_to_recent)
Hudson.instance.addView(v)
@eszasll
Copy link

eszasll commented Jul 7, 2014

Hi,
Could you please help me to write a groovy script for the same issue, but for later Jenkins version. (Jenkins ver. 1.554.1, Build Pipeline Plugin 1.4.2)
Thanks,
Szabolcs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment