提交 24021a19 编写于 作者: K kohsuke

bug fix. the persisted form now needs to use full name.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2013 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a4a6fda5
......@@ -42,11 +42,11 @@ public class Fingerprint implements ModelObject {
}
public BuildPtr(Run run) {
this( run.getParent().getName(), run.getNumber() );
this( run.getParent().getFullName(), run.getNumber() );
}
/**
* Gets the name of the job.
* Gets {@link Job#getFullName() the full name of the job}.
* <p>
* Such job could be since then removed,
* so there might not be a corresponding
......@@ -92,14 +92,14 @@ public class Fingerprint implements ModelObject {
* Returns true if {@link BuildPtr} points to the given run.
*/
public boolean is(Run r) {
return r.getNumber()==number && r.getParent().getName().equals(name);
return r.getNumber()==number && r.getParent().getFullName().equals(name);
}
/**
* Returns true if {@link BuildPtr} points to the given job.
*/
public boolean is(Job job) {
return job.getName().equals(name);
return job.getFullName().equals(name);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册