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

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

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

Trigger.getProjectActions介绍

[英]Actions to be displayed in the job page.
[中]要在作业页面中显示的操作。

代码示例

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

r.addAll(trigger.getProjectActions());
} catch (Exception e) {
  LOGGER.log(Level.SEVERE, "Error loading trigger.", e);

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

public Collection<? extends Action> superGetProjectActions() {
  return super.getProjectActions();
}

代码示例来源:origin: org.jenkins-ci.plugins.workflow/workflow-job

public List<Action> getAllTriggerActions() {
  List<Action> triggerActions = new ArrayList<>();
  for (Trigger<?> t : triggers) {
    triggerActions.addAll(t.getProjectActions());
  }
  return triggerActions;
}

代码示例来源:origin: org.jenkins-ci.plugins/cloudbees-folder

/**
 * {@inheritDoc}
 */
@SuppressWarnings("deprecation")
@Override
public List<Action> getActions() {
  List<Action> actions = new ArrayList<Action>(super.getActions());
  for (Trigger<?> trigger : triggers) {
    actions.addAll(trigger.getProjectActions());
  }
  return actions;
}

代码示例来源:origin: jenkinsci/cloudbees-folder-plugin

/**
 * {@inheritDoc}
 */
@SuppressWarnings("deprecation")
@Override
public List<Action> getActions() {
  List<Action> actions = new ArrayList<Action>(super.getActions());
  for (Trigger<?> trigger : triggers) {
    actions.addAll(trigger.getProjectActions());
  }
  return actions;
}

代码示例来源:origin: org.jenkins-ci.plugins/matrix-project

@Override
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  for (BuildStep step : builders)
    r.addAll(step.getProjectActions(this));
  for (BuildStep step : publishers)
    r.addAll(step.getProjectActions(this));
  for (BuildWrapper step : buildWrappers)
    r.addAll(step.getProjectActions(this));
  for (Trigger<?> trigger : triggers())
    r.addAll(trigger.getProjectActions());
  return r;
}

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

@Override
public Collection<? extends Action> getProjectActions() {
  initPython();
  if (pexec.isImplemented(4)) {
    return (Collection) pexec.execPython("get_project_actions");
  } else {
    return super.getProjectActions();
  }
}

代码示例来源:origin: org.hudsonci.plugins/ivy

@Override
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  // if we just pick up the project actions from the last build,
  // and if the last build failed very early, then the reports that
  // kick in later (like test results) won't be displayed.
  // so pick up last successful build, too.
  Set<Class> added = new HashSet<Class>();
  addTransientActionsFromBuild(getLastBuild(), r, added);
  addTransientActionsFromBuild(getLastSuccessfulBuild(), r, added);
  for (Trigger<?> trigger : triggers)
    r.addAll(trigger.getProjectActions());
  return r;
}

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

@Override
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  // if we just pick up the project actions from the last build,
  // and if the last build failed very early, then the reports that
  // kick in later (like test results) won't be displayed.
  // so pick up last successful build, too.
  Set<Class> added = new HashSet<Class>();
  addTransientActionsFromBuild(getLastBuild(), r, added);
  addTransientActionsFromBuild(getLastSuccessfulBuild(), r, added);
  for (Trigger<?> trigger : getTriggers().values())
    r.addAll(trigger.getProjectActions());
  return r;
}

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

@Override
@SuppressWarnings("unchecked")
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  for (BuildStep step : getBuildersList())
    r.addAll(step.getProjectActions(this));
  for (BuildStep step : getPublishersList())
    r.addAll(step.getProjectActions(this));
  for (BuildWrapper step : getBuildWrappersList())
    r.addAll(step.getProjectActions(this));
  for (Trigger trigger : getTriggersList())
    r.addAll(trigger.getProjectActions());
  return r;
}

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

protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  // if we just pick up the project actions from the last build,
  // and if the last build failed very early, then the reports that
  // kick in later (like test results) won't be displayed.
  // so pick up last successful build, too.
  Set<Class> added = new HashSet<Class>();
  addTransientActionsFromBuild(getLastBuild(),r,added);
  addTransientActionsFromBuild(getLastSuccessfulBuild(),r,added);
  for (Trigger<?> trigger : getTriggersList())
    r.addAll(trigger.getProjectActions());
  return r;
}

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

@Override
@SuppressWarnings("unchecked")
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  for (BuildStep step : getBuildersList())
    r.addAll(step.getProjectActions(this));
  for (BuildStep step : getPublishersList())
    r.addAll(step.getProjectActions(this));
  for (BuildWrapper step : getBuildWrappersList())
    r.addAll(step.getProjectActions(this));
  for (Trigger trigger : getTriggersList())
    r.addAll(trigger.getProjectActions());
  return r;
}

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

@Override
@SuppressWarnings("unchecked")
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  for (BuildStep step : getBuildersList())
    r.addAll(step.getProjectActions(this));
  for (BuildStep step : getPublishersList())
    r.addAll(step.getProjectActions(this));
  for (BuildWrapper step : getBuildWrappersList())
    r.addAll(step.getProjectActions(this));
  for (Trigger trigger : getTriggersList())
    r.addAll(trigger.getProjectActions());
  return r;
}

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

r.addAll(trigger.getProjectActions());
} catch (Exception e) {
  LOGGER.log(Level.SEVERE, "Error loading trigger.", e);

代码示例来源:origin: jenkinsci/maven-plugin

protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  // if we just pick up the project actions from the last build,
  // and if the last build failed very early, then the reports that
  // kick in later (like test results) won't be displayed.
  // so pick up last successful build, too.
  Set<Class> added = new HashSet<Class>();
  addTransientActionsFromBuild(getLastBuild(),r,added);
  addTransientActionsFromBuild(getLastSuccessfulBuild(),r,added);
  for (Trigger<?> trigger : triggers())
    r.addAll(trigger.getProjectActions());
  return r;
}

代码示例来源:origin: org.jvnet.hudson.plugins/ivy

@Override
protected void updateTransientActions() {
  synchronized(transientActions) {
    super.updateTransientActions();
    // if we just pick up the project actions from the last build,
    // and if the last build failed very early, then the reports that
    // kick in later (like test results) won't be displayed.
    // so pick up last successful build, too.
    Set<Class> added = new HashSet<Class>();
    addTransientActionsFromBuild(getLastBuild(),added);
    addTransientActionsFromBuild(getLastSuccessfulBuild(),added);
    for (Trigger trigger : triggers) {
      Collection<Action> a = trigger.getProjectActions();
      if(a!=null)
        transientActions.addAll(a);
    }
  }
}

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

@Override
@SuppressWarnings("unchecked")
protected List<Action> createTransientActions() {
  List<Action> r = super.createTransientActions();
  for (BuildStep step : getBuildersList()) {
    r.addAll(step.getProjectActions(this));
  }
  for (BuildStep step : getPublishersList()) {
    r.addAll(step.getProjectActions(this));
  }
  for (BuildWrapper step : getBuildWrappersList()) {
    r.addAll(step.getProjectActions(this));
  }
  for (Trigger trigger : getTriggersList()) {
    r.addAll(trigger.getProjectActions(this));
  }
  return r;
}

代码示例来源:origin: hudson.plugins/project-inheritance

ta.addAll(trigger.getProjectActions());

代码示例来源:origin: i-m-c/jenkins-inheritance-plugin

ta.addAll(trigger.getProjectActions());

相关文章