src/main/java/org/jenkinsci/plugins/teamstrigger/jobfinder/JobFinder.java
/** This is the token configured in the job. A feature found in Jenkins core. */
This is the token configured in the job. A feature found in Jenkins core.
This is the token configured in the job . A feature found in Jenkins core .
@SuppressWarnings("deprecation")
  private static boolean authenticationTokenMatches(
      final hudson.model.BuildAuthorizationToken authToken, final String givenToken) {
    final boolean jobHasAuthToken = jobHasAuthToken(authToken);
    final boolean authTokenWasGiven = !isNullOrEmpty(givenToken);
    if (jobHasAuthToken && authTokenWasGiven) {
      return authToken.getToken().equals(givenToken);
    }
    if (!jobHasAuthToken && !authTokenWasGiven) {
      return true;
    }
    return false;
  }
@ SuppressWarnings ( "deprecation" ) private static boolean authenticationTokenMatches ( final hudson . model . BuildAuthorizationToken authToken , final String givenToken ) { final boolean jobHasAuthToken = jobHasAuthToken ( authToken ) ; final boolean authTokenWasGiven = ! isNullOrEmpty ( givenToken ) ; if ( jobHasAuthToken && authTokenWasGiven ) { return authToken . getToken ( ) . equals ( givenToken ) ; } if ( ! jobHasAuthToken && ! authTokenWasGiven ) { return true ; } return false ; }
This is the token configured in the job.
This is the token configured in the job .