Tabnine Logo
StaplerReferer.findItemFromRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
findItemFromRequest
method
in
org.jenkinsci.plugins.workflow.util.StaplerReferer

Best Java code snippets using org.jenkinsci.plugins.workflow.util.StaplerReferer.findItemFromRequest (Showing top 3 results out of 315)

origin: org.jenkins-ci.plugins.workflow/workflow-scm-step

public Collection<? extends SCMDescriptor<?>> getApplicableDescriptors() {
  return SCM._for(StaplerReferer.findItemFromRequest(Job.class));
}
origin: org.jenkins-ci.plugins/pipeline-build-step

@Restricted(DoNotUse.class) // for use from config.jelly
public String getContext() {
  Job<?,?> job = StaplerReferer.findItemFromRequest(Job.class);
  return job != null ? job.getFullName() : null;
}
origin: org.jenkins-ci.plugins/pipeline-build-step

if (params != null) {
  Jenkins jenkins = Jenkins.getInstance();
  Job<?,?> context = StaplerReferer.findItemFromRequest(Job.class);
  Job<?,?> job = jenkins != null ? jenkins.getItem(step.getJob(), context, Job.class) : null;
  if (job != null) {
org.jenkinsci.plugins.workflow.utilStaplerRefererfindItemFromRequest

Javadoc

Like StaplerRequest#findAncestorObject except works also in configuration screens when a lazy-load section is newly added.

Popular methods of StaplerReferer

  • itemFromReferer

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now