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

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

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

Trigger.getDescriptor介绍

暂无

代码示例

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

@Override
public DescriptorImpl getDescriptor() {
  return (DescriptorImpl)super.getDescriptor();
}

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

@Override
public DescriptorImpl getDescriptor() {
  return (DescriptorImpl)super.getDescriptor();
}

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

@Override
public DescriptorImpl getDescriptor() {
  return (DescriptorImpl) super.getDescriptor();
}

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

@Override
public DescriptorImpl getDescriptor() {
  return (DescriptorImpl) super.getDescriptor();
}

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

@Override
public DescriptorImpl getDescriptor() {
  return (DescriptorImpl) super.getDescriptor();
}

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

@Override
public DescriptorImpl getDescriptor() {
  return (DescriptorImpl) super.getDescriptor();
}

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

public Trigger getTriggerForDescriptor(TriggerDescriptor td) {
  for (Trigger trigger : triggers) {
    if (td.equals(trigger.getDescriptor())) {
      return trigger;
    }
  }
  return null;
}

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

public void removeTrigger(Trigger t) {
  // TODO: Will we get equality for trigger instances of the same Descriptor?
  Trigger toRemove = getTriggerForDescriptor(t.getDescriptor());
  if (toRemove != null) {
    triggers.remove(toRemove);
  }
}

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

public Map<TriggerDescriptor,Trigger<?>> getTriggersMap() {
  Map<TriggerDescriptor,Trigger<?>> triggerMap = new HashMap<>();
  for (Trigger t : getTriggers()) {
    TriggerDescriptor td = t.getDescriptor();
    triggerMap.put(td, t);
  }
  return triggerMap;
}

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

public void setTriggers(List<Trigger<?>> triggerList) {
  for (Trigger trigger : triggerList) {
    CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  }
}

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

@Override
public TriggerDescriptor getDescriptor() {
  initPython();
  if (pexec.isImplemented(5)) {
    return (TriggerDescriptor) pexec.execPython("get_descriptor");
  } else {
    return super.getDescriptor();
  }
}

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

@SuppressWarnings("unchecked")
public void setTriggers(List<Trigger<?>> triggerList) {
  for (Trigger trigger : triggerList) {
    CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  }
}

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

public void setTriggers(List<Trigger<?>> triggerList) {
  for (Trigger trigger : triggerList) {
    CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  }
}

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

@SuppressWarnings("unchecked")
public void setTriggers(List<Trigger<?>> triggerList) {
  for (Trigger trigger : triggerList) {
    CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  }
}

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

public void addTrigger(Trigger trigger) {
  Trigger old = triggers.get(trigger.getDescriptor());
  if (old != null) {
    old.stop();
    triggers.remove(old);
  }
  triggers.add(trigger);
  trigger.start(this, true);
}

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

/**
 * Adds a new {@link Trigger} to this {@link Project} if not active yet.
 */
@SuppressWarnings("unchecked")
public void addTrigger(Trigger<?> trigger) throws IOException {
  CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  save();
  updateTransientActions();
}

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

/**
 * Adds a new {@link Trigger} to this {@link Project} if not active yet.
 */
@SuppressWarnings("unchecked")
public void addTrigger(Trigger<?> trigger) throws IOException {
  CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  save();
  updateTransientActions();
}

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

/**
 * Adds a new {@link Trigger} to this {@link Project} if not active yet.
 */
@SuppressWarnings("unchecked")
public void addTrigger(Trigger<?> trigger) throws IOException {
  CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  save();
  updateTransientActions();
}

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

public void addTrigger(Trigger trigger) {
  Trigger old = triggers.get(trigger.getDescriptor());
  if (old != null) {
    old.stop();
    triggers.remove(old);
  }
  triggers.add(trigger);
  trigger.start(this, true);
}

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

/**
 * Adds a new {@link Trigger} to this {@link Project} if not active yet.
 */
@SuppressWarnings("unchecked")
public void addTrigger(Trigger<?> trigger) throws IOException {
  CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
  save();
  updateTransientActions();
}

相关文章