Skip to content
Permalink
Browse files
At the moment we have a SCM that doesn't require a workspace to poll …
…for changes the ws will be null

[FIXED JENKINS-25253]
  • Loading branch information
jwillemsen authored and rodrigc committed Apr 3, 2016
1 parent 0cd660a commit 48aeb95c4c2fe9d937db9bdf74193b648cb06e31
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCMRevisionState.java
@@ -22,9 +22,10 @@ public void add(@NonNull SCM scm, @NonNull FilePath ws, @Nullable Run<?,?> build
revisionStates.put(scm.getKey(), scmState);
}

public SCMRevisionState get(@NonNull SCM scm, @NonNull FilePath ws, @Nullable AbstractBuild<?,?> build) {
public SCMRevisionState get(@NonNull SCM scm, FilePath ws, @Nullable AbstractBuild<?,?> build) {
SCMRevisionState state = revisionStates.get(scm.getKey());
if (state == null) {
// At the moment we have a SCM that doesn't require a workspace ws will be null
if (state == null && ws != null) {
// backward compatibility with 0.2
state = revisionStates.get(keyFor(scm, ws, build));
}

0 comments on commit 48aeb95

Please sign in to comment.