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
  • Field Details

  • Constructor Details

    • Jenkins

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

    • getJenkins

      public Jenkins getJenkins()
      Overrides:
      getJenkins in class PageObject
    • 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
    • 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.
    • getUser

      public User getUser(String name)
    • 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)
    • getLogger

      public JenkinsLogger getLogger(String name)
    • createLogger

      public JenkinsLogger createLogger(String name, Map<String,Level> levels)
    • getPlugin

      public Plugin getPlugin(String name)
    • getPluginPage

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

      public String getName()
      Specified by:
      getName in class Node
    • 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)