Class JenkinsConfiguredRule

java.lang.Object
org.jvnet.hudson.test.JenkinsRule
io.jenkins.plugins.casc.misc.JenkinsConfiguredRule
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction, org.junit.rules.MethodRule, org.junit.rules.TestRule
Direct Known Subclasses:
JenkinsConfiguredWithCodeRule, JenkinsConfiguredWithReadmeRule

public class JenkinsConfiguredRule extends org.jvnet.hudson.test.JenkinsRule
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jvnet.hudson.test.JenkinsRule

    org.jvnet.hudson.test.JenkinsRule.BreakException, org.jvnet.hudson.test.JenkinsRule.DummySecurityRealm, org.jvnet.hudson.test.JenkinsRule.JSONWebResponse, org.jvnet.hudson.test.JenkinsRule.RemoteLogDumper, org.jvnet.hudson.test.JenkinsRule.TestBuildWrapper, org.jvnet.hudson.test.JenkinsRule.WebClient

    Nested classes/interfaces inherited from interface ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Field Summary

    Fields inherited from class org.jvnet.hudson.test.JenkinsRule

    computerConnectorTester, contextPath, env, homeLoader, hudson, jenkins, jsDebugger, localPort, NO_PROPERTIES, recipes, server, SLAVE_DEBUG_PORT, tearDowns, testDescription, timeout, useLocalPluginManager
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    exportToString(boolean strict)
    Exports the Jenkins configuration to a string.

    Methods inherited from class org.jvnet.hudson.test.JenkinsRule

    _configureJenkinsForTest, _configureUpdateCenter, _configureUserRealm, _stopJenkins, after, apply, apply, assertAllImageLoadSuccessfully, assertBuildStatus, assertBuildStatus, assertBuildStatusSuccess, assertBuildStatusSuccess, assertEqualBeans, assertEqualDataBoundBeans, assertEqualDataBoundBeans, assertGoodStatus, assertHelpExists, assertLogContains, assertLogNotContains, assertStringContains, assertStringContains, assertXPath, assertXPath, assertXPathResultsContainText, assertXPathValue, assertXPathValueContains, before, buildAndAssertStatus, buildAndAssertSuccess, buildAndAssertSuccess, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configureUpdateCenter, configureUserRealm, createApiToken, createComputerLauncher, createDummySecurityRealm, createFolder, createFreeStyleProject, createFreeStyleProject, createLocalLauncher, createOnlineSlave, createOnlineSlave, createOnlineSlave, createPretendSlave, createProject, createProject, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createTaskListener, createTmpDir, createUniqueProjectName, createWebClient, createWebServer2, disconnectSlave, dumpThreads, executeOnServer, findDataBoundConstructor, findPreviousInputElement, get, getButtonByCaption, getDisplayName, getIconFileName, getInstance, getJSON, getLog, getPluginManager, getTestDescription, getURL, getUrlName, getWebAppRoot, interactiveBreak, isGoodHttpStatus, isSomethingHappening, last, newHudson, pause, postJSON, recipe, recipeLoadCurrentPlugin, restart, search, setPluginManager, setQuietPeriod, showAgentLogs, showAgentLogs, showAgentLogs, submit, submit, waitForCompletion, waitForMessage, waitOnline, waitUntilNoActivity, waitUntilNoActivityUpTo, with, with, withExistingHome, withNewHome, withPresetData, writeReplace

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JenkinsConfiguredRule

      public JenkinsConfiguredRule()
  • Method Details

    • exportToString

      public String exportToString(boolean strict) throws Exception
      Exports the Jenkins configuration to a string.
      Parameters:
      strict - Fail if any export operation returns error
      Returns:
      YAML as string
      Throws:
      Exception - Export error
      AssertionError - Failed to export the configuration
      Since:
      1.25