diff --git a/blueocean-git-pipeline/pom.xml b/blueocean-git-pipeline/pom.xml index 4d4798b8bb..2fa6b48b55 100644 --- a/blueocean-git-pipeline/pom.xml +++ b/blueocean-git-pipeline/pom.xml @@ -18,6 +18,7 @@ true + ${project.groupId} diff --git a/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java b/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java index dea0e5a5bd..5c6b99b11b 100644 --- a/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java +++ b/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java @@ -138,6 +138,9 @@ static List validateCredentials(@NonNull String uri, @Nullab private static boolean checkCauseNotAuthenticated( GitException e) { if(e.getCause() instanceof TransportException){ TransportException te = (TransportException)e.getCause(); + if(StringUtils.contains(te.getMessage(), "Cannot log in ")) { + return true; + } IllegalStateException stateException = getIllegalStateException(te.getCause()); if(stateException!=null){ return StringUtils.contains(stateException.getMessage(), "not authenticated.");