Class GithubPipelineCreateRequest


  • public class GithubPipelineCreateRequest
    extends io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest
    Author:
    Vivek Pandey
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest

        io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest.JenkinsfileCriteria
    • Field Summary

      • Fields inherited from class io.jenkins.blueocean.scm.api.AbstractPipelineCreateRequest

        scmConfig
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String computeCredentialId​(io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)  
      protected jenkins.scm.api.SCMSource createSource​(jenkins.branch.MultiBranchProject project, io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)  
      protected io.jenkins.blueocean.scm.api.AbstractScmSourceEvent getScmSourceEvent​(jenkins.branch.MultiBranchProject project, jenkins.scm.api.SCMSource source)  
      protected List<io.jenkins.blueocean.commons.ErrorMessage.Error> validate​(String name, io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)  
      • Methods inherited from class io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest

        create, repoHasJenkinsFile
      • Methods inherited from class io.jenkins.blueocean.scm.api.AbstractPipelineCreateRequest

        checkUserIsAuthenticatedAndHasItemCreatePermission, createProject, getParent
      • Methods inherited from class io.jenkins.blueocean.rest.model.BluePipelineCreateRequest

        getName, setName
    • Constructor Detail

      • GithubPipelineCreateRequest

        @DataBoundConstructor
        public GithubPipelineCreateRequest​(String name,
                                           io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
    • Method Detail

      • createSource

        protected jenkins.scm.api.SCMSource createSource​(@Nonnull
                                                         jenkins.branch.MultiBranchProject project,
                                                         @Nonnull
                                                         io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
        Specified by:
        createSource in class io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest
      • getScmSourceEvent

        @Nullable
        protected io.jenkins.blueocean.scm.api.AbstractScmSourceEvent getScmSourceEvent​(@Nonnull
                                                                                        jenkins.branch.MultiBranchProject project,
                                                                                        @Nonnull
                                                                                        jenkins.scm.api.SCMSource source)
        Overrides:
        getScmSourceEvent in class io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest
      • validate

        protected List<io.jenkins.blueocean.commons.ErrorMessage.Error> validate​(String name,
                                                                                 io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
        Specified by:
        validate in class io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest
      • computeCredentialId

        protected String computeCredentialId​(io.jenkins.blueocean.rest.model.BlueScmConfig scmConfig)
        Specified by:
        computeCredentialId in class io.jenkins.blueocean.scm.api.AbstractPipelineCreateRequest