i tried to debug it, as shown in screenshot-1, myBaseline is a instance of SCMRevisionState.None, but it would not equal to SCMRevisionState.NONE, why? only one instance of SCMRevisionState.None should be there, right?
Makson Lee
added a comment - i tried to debug it, as shown in screenshot-1, myBaseline is a instance of SCMRevisionState.None, but it would not equal to SCMRevisionState.NONE, why? only one instance of SCMRevisionState.None should be there, right?
--- a/src/main/java/hudson/plugins/repo/RepoScm.java
+++ b/src/main/java/hudson/plugins/repo/RepoScm.java
@@ -631,7 +631,7 @@ publicclass RepoScm extends SCM implements Serializable {
finalString expandedManifestBranch = env.expand(manifestBranch);
final Run<?, ?> lastRun = job.getLastBuild();
- if (myBaseline == SCMRevisionState.NONE) {
+ if (myBaseline.getClass() == SCMRevisionState.NONE.getClass()) {
// Probably the first build, or possibly an aborted build.
myBaseline = getLastState(lastRun, expandedManifestBranch);
if (myBaseline == SCMRevisionState.NONE) {
Makson Lee
added a comment - as a workaround, i tried the following,
--- a/src/main/java/hudson/plugins/repo/RepoScm.java
+++ b/src/main/java/hudson/plugins/repo/RepoScm.java
@@ -631,7 +631,7 @@ public class RepoScm extends SCM implements Serializable {
final String expandedManifestBranch = env.expand(manifestBranch);
final Run<?, ?> lastRun = job.getLastBuild();
- if (myBaseline == SCMRevisionState.NONE) {
+ if (myBaseline.getClass() == SCMRevisionState.NONE.getClass()) {
// Probably the first build, or possibly an aborted build.
myBaseline = getLastState(lastRun, expandedManifestBranch);
if (myBaseline == SCMRevisionState.NONE) {
i tried to debug it, as shown in screenshot-1, myBaseline is a instance of SCMRevisionState.None, but it would not equal to SCMRevisionState.NONE, why? only one instance of SCMRevisionState.None should be there, right?