public class BlockBuildJobProperty
extends hudson.model.JobProperty<hudson.model.Job<?,?>>
Modifier and Type | Class and Description |
---|---|
static class |
BlockBuildJobProperty.DescriptorImpl
Provides autocompletion and validation for the project textbox fields.
|
Constructor and Description |
---|
BlockBuildJobProperty()
Default Constructor
|
BlockBuildJobProperty(boolean useBlockBuildUpstreamProject,
List<String> finalUpstreamProjectsList,
boolean useBlockBuildDownstreamProject,
List<String> finalDownstreamProjectsList)
Constructor
Similar to the DataBoundConstructor, but takes a List instead of a string for the final projects.
|
BlockBuildJobProperty(boolean useBlockBuildUpstreamProject,
String finalUpstreamProjects,
boolean useBlockBuildDownstreamProject,
String finalDownstreamProjects)
DataBoundConstruct
Created by Jenkins to store the properties for this plugin.
|
Modifier and Type | Method and Description |
---|---|
static BlockBuildJobProperty |
getBlockBuildJobPropertyFromProject(hudson.model.AbstractProject<?,?> project)
Returns the BlockBuildJobProperty for a given project.
|
String |
getFinalDownstreamProjects() |
com.google.common.collect.ImmutableList<String> |
getFinalDownstreamProjectsAsList() |
String |
getFinalUpstreamProjects() |
com.google.common.collect.ImmutableList<String> |
getFinalUpstreamProjectsAsList() |
boolean |
isUseBlockBuildDownstreamProject() |
boolean |
isUseBlockBuildUpstreamProject() |
BlockBuildJobProperty |
onDeleted(String deletedName)
When a project is deleted from Jenkins, call this function to delete that project
from BlockBuildJobProperty.
|
BlockBuildJobProperty |
onRenamed(String oldName,
String newName)
When a project is renamed in Jenkins, call this function to rename that project
in BlockBuildJobProperty.
|
static void |
updateBlockBuildJobPropertyInProject(hudson.model.AbstractProject<?,?> project,
BlockBuildJobProperty newProperty)
Updates the BlockBuildJobProperty for a given project.
|
@DataBoundConstructor public BlockBuildJobProperty(boolean useBlockBuildUpstreamProject, String finalUpstreamProjects, boolean useBlockBuildDownstreamProject, String finalDownstreamProjects)
useBlockBuildUpstreamProject
- true if blocking on upstream projects is enabledfinalUpstreamProjects
- comma separated list of final projectsuseBlockBuildDownstreamProject
- true if blocking on downstream projects is enabledfinalDownstreamProjects
- comma separated list of final projectspublic BlockBuildJobProperty(boolean useBlockBuildUpstreamProject, List<String> finalUpstreamProjectsList, boolean useBlockBuildDownstreamProject, List<String> finalDownstreamProjectsList)
useBlockBuildUpstreamProject
- true if blocking on upstream projects is enabledfinalUpstreamProjectsList
- List of final projectsuseBlockBuildDownstreamProject
- true if blocking on downstream projects is enabledfinalDownstreamProjectsList
- List of final projectspublic BlockBuildJobProperty()
public boolean isUseBlockBuildUpstreamProject()
public boolean isUseBlockBuildDownstreamProject()
public String getFinalUpstreamProjects()
public String getFinalDownstreamProjects()
public com.google.common.collect.ImmutableList<String> getFinalUpstreamProjectsAsList()
public com.google.common.collect.ImmutableList<String> getFinalDownstreamProjectsAsList()
public BlockBuildJobProperty onDeleted(String deletedName)
deletedName
- name of the project being deletedpublic BlockBuildJobProperty onRenamed(String oldName, String newName)
oldName
- old name of the project being renamednewName
- new namepublic static BlockBuildJobProperty getBlockBuildJobPropertyFromProject(hudson.model.AbstractProject<?,?> project)
project
- the projectpublic static void updateBlockBuildJobPropertyInProject(hudson.model.AbstractProject<?,?> project, BlockBuildJobProperty newProperty)
project
- the projectnewProperty
- the new BlockBuildJobProperty
If an error occurs, the stack trace is shown and an error message is logged. Execution tries to continue.Copyright © 2016–2017. All rights reserved.