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.

Kohsuke Kawaguchi
  • Field Details

  • Constructor Details

    • Jenkins

      public Jenkins( injector, JenkinsController controller)
  • Method Details

    • getJenkins

      public Jenkins getJenkins()
      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
    • 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.
    • getUser

      public User getUser(String name)
    • getPluginManager

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

      @Deprecated public boolean canRestart()
      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
      the jobs
    • getViews

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

      public void generateSupportBundle(SupportBundleRequest supportBundleRequest)