public static String displayNameFor(@Nonnull Job<?, ?> job) {
        GithubProjectProperty ghProp = job.getProperty(GithubProjectProperty.class);
        if (ghProp != null && isNotBlank(ghProp.getDisplayName())) {
            return ghProp.getDisplayName();
        }

        return job.getFullName();
    }
public static String displayNameFor ( @ Nonnull Job < ? , ? > job ) { GithubProjectProperty ghProp = job . getProperty ( GithubProjectProperty . class ) ; if ( ghProp != null && isNotBlank ( ghProp . getDisplayName ( ) ) ) { return ghProp . getDisplayName ( ) ; } return job . getFullName ( ) ; }
Extracts value of display name from given job, or just returns full name if field or prop is not defined

@param job project which wants to get current context name to use in GH status API

@return display name or full job name if field is not defined
@since 1.14.1