Class BuildPipelineTrigger

    • Constructor Detail

      • BuildPipelineTrigger

        @DataBoundConstructor
        public BuildPipelineTrigger​(String downstreamProjectNames,
                                    List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs)
        Construct the trigger setting the project name and manual build promotion option
        Parameters:
        downstreamProjectNames - - the job name of the downstream build
        configs - - the build parameters
    • Method Detail

      • getDownstreamProjectNames

        public String getDownstreamProjectNames()
      • setDownstreamProjectNames

        public void setDownstreamProjectNames​(String downstreamProjectNames)
      • getConfigs

        public List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> getConfigs()
      • onDownstreamProjectRenamed

        public boolean onDownstreamProjectRenamed​(String oldName,
                                                  String newName)
        Renames a project contained in downstreamProjectNames
        Parameters:
        oldName - - The old name of the project
        newName - - The new name of the project
        Returns:
        - true: A downstream project has been renamed; false No downstream projects were renamed
      • onDownstreamProjectDeleted

        public boolean onDownstreamProjectDeleted​(String oldName)
        Deletes a project from downstreamProjectNames.
        Parameters:
        oldName - - Project to be deleted
        Returns:
        - true; project deleted: false; project not deleted onDownstreamProjectRenamed(String, String)
      • removeDownstreamTrigger

        public void removeDownstreamTrigger​(BuildPipelineTrigger bpTrigger,
                                            AbstractProject<?,​?> ownerProject,
                                            String downstreamProjectName)
        Removes a downstream trigger (BuildPipelineTrigger) from a project. This removes both: - The downstream project name from the downstreamProjectNames attribute - The BuildPipelineTrigger from the AbstractProject publishers list
        Parameters:
        bpTrigger - - The BuildPipelineTrigger to be removed
        ownerProject - - The AbstractProject from which to removed the BuildPipelineTrigger
        downstreamProjectName - - The name of the AbstractProject associated with the BuildPipelineTrigger