Codota Logo
DeclarativeJobPropertyTrackerAction
Code IndexAdd Codota to your IDE (free)

How to use
DeclarativeJobPropertyTrackerAction
in
org.jenkinsci.plugins.pipeline.modeldefinition.actions

Best Java code snippets using org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: jenkinsci/pipeline-model-definition-plugin

/**
 * Alternative constructor for copying an existing {@link DeclarativeJobPropertyTrackerAction}'s contents directly.
 *
 * @param copyFrom a non-null {@link DeclarativeJobPropertyTrackerAction}
 */
public DeclarativeJobPropertyTrackerAction(@Nonnull DeclarativeJobPropertyTrackerAction copyFrom) {
  this.jobProperties.addAll(copyFrom.getJobProperties());
  this.triggers.addAll(copyFrom.getTriggers());
  this.parameters.addAll(copyFrom.getParameters());
  this.options.addAll(copyFrom.getOptions());
}
origin: jenkinsci/pipeline-model-definition-plugin

@LocalData
@Test
public void trackerPropertyUpgrade() throws Exception {
  WorkflowJob p = j.jenkins.getItemByFullName("trackerPropertyUpgrade", WorkflowJob.class);
  assertNotNull(p);
  WorkflowRun b1 = p.getLastBuild();
  assertNotNull(b1);
  assertNotNull(b1.getAction(DeclarativeJobPropertyTrackerAction.class));
  assertNull(p.getAction(DeclarativeJobPropertyTrackerAction.class));
  p.addProperty(new DisableConcurrentBuildsJobProperty());
  p.setDefinition(new CpsFlowDefinition(pipelineSourceFromResources("simpleParameters"), true));
  WorkflowRun b2 = j.buildAndAssertSuccess(p);
  assertNull(b2.getAction(DeclarativeJobPropertyTrackerAction.class));
  assertNull(p.getProperty(BuildDiscarderProperty.class));
  ParametersDefinitionProperty parameters = p.getProperty(ParametersDefinitionProperty.class);
  assertNotNull(parameters);
  assertNotNull(parameters.getParameterDefinition("flag"));
  DeclarativeJobPropertyTrackerAction action2 = p.getAction(DeclarativeJobPropertyTrackerAction.class);
  assertNotNull(action2);
  assertFalse(action2.getParameters().isEmpty());
  assertEquals("flag", action2.getParameters().iterator().next());
  p.setDefinition(new CpsFlowDefinition(pipelineSourceFromResources("propsTriggersParamsRemoved"), true));
  WorkflowRun b3 = j.buildAndAssertSuccess(p);
  assertNull(b3.getAction(DeclarativeJobPropertyTrackerAction.class));
  assertNull(p.getProperty(BuildDiscarderProperty.class));
  assertNull(p.getProperty(ParametersDefinitionProperty.class));
  DeclarativeJobPropertyTrackerAction action3 = p.getAction(DeclarativeJobPropertyTrackerAction.class);
  assertNotNull(action3);
  assertTrue(action3.getParameters().isEmpty());
}
origin: jenkinsci/pipeline-model-definition-plugin

DeclarativeJobPropertyTrackerAction action2 = job.getAction(DeclarativeJobPropertyTrackerAction.class);
assertNotNull(action2);
assertTrue(action2.getParameters().isEmpty());
assertTrue(action3.getParameters().isEmpty());
org.jenkinsci.plugins.pipeline.modeldefinition.actionsDeclarativeJobPropertyTrackerAction

Javadoc

Invisible action used for tracking what JobPropertys, Triggers, and ParameterDefinitions were defined in the Jenkinsfile for a given run.

Most used methods

  • getParameters
  • getJobProperties
  • getOptions
  • getTriggers

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • onRequestPermissionsResult (Fragment)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now