Created
December 14, 2011 15:52
-
-
Save hallelujah/1477126 to your computer and use it in GitHub Desktop.
Jenkins Hudson groovy script to create a view in BuildPipeline Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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