Class Jenkins

  • All Implemented Interfaces:
    CapybaraPortingLayer, Container

    public class Jenkins
    extends Node
    implements Container
    Top-level object that acts as an entry point to various systems.

    This is also the only page object that can be injected since there's always one that points to THE Jenkins instance under test.

    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • Jenkins

        public Jenkins​(com.google.inject.Injector injector,
                       JenkinsController controller)
    • Method Detail

      • getVersion

        public hudson.util.VersionNumber getVersion()
        Get the version of Jenkins under test.
      • waitForStarted

        public void waitForStarted()
        Wait for Jenkins to become up and running
      • isJenkins1X

        public boolean isJenkins1X()
        Tells if Jenkins version under test is 1.X
      • getConfigPage

        public JenkinsConfig getConfigPage()
        Access global configuration page.
      • login

        public Login login()
        Visit login page.
      • logout

        public void logout()
        Visit logout URL.
      • getCurrentUser

        public User getCurrentUser()
        Get user currently logged in.
      • getPluginManager

        public PluginManager getPluginManager()
        Access the plugin manager page object
      • canRestart

        @Deprecated
        public boolean canRestart()
        Deprecated.
        Why would you call a method that always returns true?
        This method always return true.
      • restart

        public void restart()
      • waitForLoad

        public void waitForLoad​(int seconds)
      • getPluginPage

        public <T extends PageObject> T getPluginPage​(Class<T> type)
      • getJobs

        public JobsMixIn getJobs()
        Description copied from interface: Container
        Returns the jobs in this container.
        Specified by:
        getJobs in interface Container
        Returns:
        the jobs
      • getViews

        public ViewsMixIn getViews()
        Description copied from interface: Container
        Returns the views in this container.
        Specified by:
        getViews in interface Container
        Returns:
        the views
      • generateSupportBundle

        public void generateSupportBundle​(SupportBundleRequest supportBundleRequest)