Class JenkinsController

    • Field Detail

      • isQuite

        @Inject
        @Named("quite")
        protected boolean isQuite
      • WORKSPACE

        @Inject
        @Named("WORKSPACE")
        protected String WORKSPACE
      • STARTUP_TIMEOUT

        public static final int STARTUP_TIMEOUT
      • injector

        public com.google.inject.Injector injector
    • Constructor Detail

      • JenkinsController

        protected JenkinsController​(com.google.inject.Injector i)
    • Method Detail

      • postConstruct

        public void postConstruct​(com.google.inject.Injector injector)
        Called when JenkinsController is pulled into a world prior to start()
      • getLogPrinter

        protected LogListener getLogPrinter()
      • stopNow

        public abstract void stopNow()
                              throws IOException
        Synchronously shutdown Jenkins instance.

        This method must leave JENKINS_HOME intact so that it can be started later. To really delete the data and clean up, see tearDown().

        Throws:
        IOException
      • tearDown

        public abstract void tearDown()
                               throws IOException
        Assuming the instance had already stopped, destroy JENKINS_HOME and release resources used by Jenkins.
        Throws:
        IOException
      • restart

        public void restart()
                     throws IOException
        Stops and starts running Jenkins to perform a full JVM restart.
        Throws:
        IOException
      • isRunning

        public boolean isRunning()
      • getUrl

        public abstract URL getUrl()
        Gives URL where Jenkins is listening. Must end with "/"
        Specified by:
        getUrl in interface IJenkinsController
      • getInitialCredentials

        @CheckForNull
        public org.apache.http.auth.Credentials getInitialCredentials()
      • getLogId

        public String getLogId()
        Returns the short ID used to prefix log output from the process into the test.
      • diagnose

        public void diagnose​(Throwable cause)
                      throws IOException
        Perform controller specific diagnostics for test failure. Defaults to no-op.
        Parameters:
        cause - Failure cause
        Throws:
        IOException