本文整理了Java中jenkins.model.Jenkins.getLegacyInstanceId()
方法的一些代码示例,展示了Jenkins.getLegacyInstanceId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getLegacyInstanceId()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getLegacyInstanceId
[英]Returns the unique identifier of this Jenkins that has been historically used to identify this Jenkins to the outside world.
This form of identifier is weak in that it can be impersonated by others. See https://wiki.jenkins-ci.org/display/JENKINS/Instance+Identity for more modern form of instance ID that can be challenged and verified.
[中]返回此Jenkins的唯一标识符,该标识符过去用于向外部世界标识此Jenkins。
这种形式的标识符很弱,因为它可以被其他人模拟。看见https://wiki.jenkins-ci.org/display/JENKINS/Instance+更现代形式的实例ID的标识,可以进行质询和验证。
代码示例来源:origin: jenkinsci/jenkins
/**
* Computes the key that identifies this Hudson among other Hudsons that the user has a credential for.
*/
@VisibleForTesting
String getPropertyKey() {
Jenkins j = Jenkins.getActiveInstance();
String url = j.getRootUrl();
if (url!=null) return url;
return j.getLegacyInstanceId();
}
代码示例来源:origin: jenkinsci/jenkins
props.put("slave-port",String.valueOf(tal.getPort()));
props.put("server-id", jenkins.getLegacyInstanceId());
代码示例来源:origin: jenkinsci/jenkins
tag(rsp,"version", Jenkins.VERSION);
tag(rsp,"url", jenkins.getRootUrl());
tag(rsp,"server-id", jenkins.getLegacyInstanceId());
tag(rsp,"slave-port",tal==null?null:tal.getPort());
代码示例来源:origin: jenkinsci/jenkins
o.put("install", j.getLegacyInstanceId());
o.put("servletContainer", j.servletContext.getServerInfo());
o.put("version", Jenkins.VERSION);
代码示例来源:origin: jenkinsci/azure-vm-agents-plugin
protected DeploymentTag(long timestamp) {
String id = "";
try {
id = Jenkins.getInstance().getLegacyInstanceId();
} catch (Exception e) {
id = "AzureJenkins000";
}
this.instanceId = id;
this.timestamp = timestamp;
}
代码示例来源:origin: jenkinsci/pipeline-maven-plugin
@Nonnull
public String getMasterLegacyInstanceId() {
return Jenkins.getInstance().getLegacyInstanceId();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
props.put("slave-port",String.valueOf(tal.getPort()));
props.put("server-id", jenkins.getLegacyInstanceId());
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
tag(rsp,"version", Jenkins.VERSION);
tag(rsp,"url", jenkins.getRootUrl());
tag(rsp,"server-id", jenkins.getLegacyInstanceId());
tag(rsp,"slave-port",tal==null?null:tal.getPort());
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
o.put("install", j.getLegacyInstanceId());
o.put("servletContainer", j.servletContext.getServerInfo());
o.put("version", Jenkins.VERSION);
内容来源于网络,如有侵权,请联系作者删除!