Skip to content

Commit

Permalink
Prepare for coming release of git-client using Apache Mina, adapt hac…
Browse files Browse the repository at this point in the history
…khish code (#2561)

* Test with git-client using Apache Mina, adapt hackhish code
* use not incremental version
* minimize changes

---------

Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy authored Jun 11, 2024
1 parent 6d6e0be commit a38f15f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions blueocean-git-pipeline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<jacoco.haltOnFailure>true</jacoco.haltOnFailure>
</properties>


<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ static List<ErrorMessage.Error> 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.");
Expand Down

0 comments on commit a38f15f

Please sign in to comment.