hudson.triggers.Trigger.getProjectAction()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(166)

本文整理了Java中hudson.triggers.Trigger.getProjectAction()方法的一些代码示例,展示了Trigger.getProjectAction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Trigger.getProjectAction()方法的具体详情如下:
包路径:hudson.triggers.Trigger
类名称:Trigger
方法名:getProjectAction

Trigger.getProjectAction介绍

[英]Returns an action object if this Trigger has an action to contribute to a Project.
[中]如果此触发器有一个动作要贡献给项目,则返回一个动作对象。

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * {@link Action}s to be displayed in the job page.
 *
 * @return
 *      can be empty but never null
 * @since 1.341
 */
public Collection<? extends Action> getProjectActions() {
  // delegate to getJobAction (singular) for backward compatible behavior
  Action a = getProjectAction();
  if (a==null)    return Collections.emptyList();
  return Collections.singletonList(a);
}

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

public Action superGetProjectAction() {
  return super.getProjectAction();
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * {@link Action}s to be displayed in the job page.
 *
 * @return
 *      can be empty but never null
 * @since 1.341
 */
public Collection<? extends Action> getProjectActions() {
  // delegate to getJobAction (singular) for backward compatible behavior
  Action a = getProjectAction();
  if (a==null)    return Collections.emptyList();
  return Collections.singletonList(a);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * {@link Action}s to be displayed in the job page.
 *
 * @return
 *      can be empty but never null
 * @since 1.341
 */
public Collection<? extends Action> getProjectActions() {
  // delegate to getJobAction (singular) for backward compatible behavior
  Action a = getProjectAction();
  if (a==null)    return Collections.emptyList();
  return Collections.singletonList(a);
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * {@link Action}s to be displayed in the job page.
 *
 * @return can be empty but never null
 * @since 1.341
 */
public Collection<? extends Action> getProjectActions(AbstractProject job) {
  // delegate to getJobAction (singular) for backward compatible behavior
  Action a = getProjectAction();
  if (a == null) {
    return Collections.emptyList();
  }
  return Collections.singletonList(a);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * {@link Action}s to be displayed in the job page.
 *
 * @return
 *      can be empty but never null
 * @since 1.341
 */
public Collection<? extends Action> getProjectActions() {
  // delegate to getJobAction (singular) for backward compatible behavior
  Action a = getProjectAction();
  if (a==null)    return Collections.emptyList();
  return Collections.singletonList(a);
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * {@link Action}s to be displayed in the job page.
 *
 * @return
 *      can be empty but never null
 * @since 1.341
 */
public Collection<? extends Action> getProjectActions() {
  // delegate to getJobAction (singular) for backward compatible behavior
  Action a = getProjectAction();
  if (a==null)    return Collections.emptyList();
  return Collections.singletonList(a);
}

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

@Override
public Action getProjectAction() {
  initPython();
  if (pexec.isImplemented(3)) {
    return (Action) pexec.execPython("get_project_action");
  } else {
    return super.getProjectAction();
  }
}

相关文章