本文整理了Java中jenkins.model.Jenkins.getTcpSlaveAgentListener()
方法的一些代码示例,展示了Jenkins.getTcpSlaveAgentListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getTcpSlaveAgentListener()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getTcpSlaveAgentListener
暂无
代码示例来源:origin: jenkinsci/jenkins
/**
* {@inheritDoc}
*/
@Override
public boolean filterType(@Nonnull Class<?> contextClass, @Nonnull Descriptor descriptor) {
return descriptor.clazz != JNLPLauncher.class || Jenkins.get().getTcpSlaveAgentListener() != null;
}
}
代码示例来源:origin: jenkinsci/jenkins
/**
* {@inheritDoc}
*/
@Override
public boolean filter(@CheckForNull Object context, @Nonnull Descriptor descriptor) {
return descriptor.clazz != JNLPLauncher.class || Jenkins.get().getTcpSlaveAgentListener() != null;
}
代码示例来源:origin: jenkinsci/jenkins
TcpSlaveAgentListener tal = jenkins.getTcpSlaveAgentListener();
if (tal!=null)
props.put("slave-port",String.valueOf(tal.getPort()));
代码示例来源:origin: jenkinsci/jenkins
TcpSlaveAgentListener tal = jenkins.getTcpSlaveAgentListener();
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* {@inheritDoc}
*/
@Override
public boolean filterType(@Nonnull Class<?> contextClass, @Nonnull Descriptor descriptor) {
return descriptor.clazz != JNLPLauncher.class || Jenkins.getInstance().getTcpSlaveAgentListener() != null;
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* {@inheritDoc}
*/
@Override
public boolean filter(@CheckForNull Object context, @Nonnull Descriptor descriptor) {
return descriptor.clazz != JNLPLauncher.class || Jenkins.getInstance().getTcpSlaveAgentListener() != null;
}
代码示例来源:origin: jenkinsci/jclouds-plugin
public FormValidation doCheckUseJnlp(@QueryParameter final String value,
@QueryParameter final String preExistingJenkinsUser, @QueryParameter final String initScriptId) {
if (Boolean.valueOf(Util.fixEmptyAndTrim(value)).booleanValue()) {
if (null == Jenkins.getInstance().getTcpSlaveAgentListener() || -1 == Jenkins.getInstance().getSlaveAgentPort()) {
return FormValidation.error("This feature cannot work, because the JNLP port is disabled in global security.");
}
final Set<String> aps = Jenkins.getInstance().getAgentProtocols();
if (!(aps.contains("JNLP-connect") || aps.contains("JNLP2-connect") || aps.contains("JNLP3-connect"))) {
return FormValidation.error("This feature cannot work, because all JNLP protocols are disabled in global security.");
}
if (!Boolean.valueOf(Util.fixEmptyAndTrim(preExistingJenkinsUser)).booleanValue()) {
return FormValidation.error("Jenkins user provisioning relies on posix system, accessible via SSH.");
}
if (!ConfigHelper.getConfig(initScriptId).isEmpty()) {
return FormValidation.error("Init script functionality relies on a posix system, accessible via SSH.");
}
}
return FormValidation.ok();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
TcpSlaveAgentListener tal = jenkins.getTcpSlaveAgentListener();
if (tal!=null)
props.put("slave-port",String.valueOf(tal.getPort()));
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
TcpSlaveAgentListener tal = jenkins.getTcpSlaveAgentListener();
内容来源于网络,如有侵权,请联系作者删除!