private static CIEnvironment detectBamboo(Map<String, String> env) {
        String revision = env.get("bamboo_planRepository_revision");
        String branch = env.get("bamboo_repository_git_branch");
        if (revision == null || branch == null) return null;
        String tag = null;
        String projectName = env.get("bamboo_planRepository_name");
        return new CIEnvironment(
                "Bamboo",
                revision,
                branch,
                tag,
                projectName
        );
    }
private static CIEnvironment detectBamboo(Map<String, String> env) {
        String revision = env.get("bamboo_planRepository_revision");
        String branch = env.get("bamboo_repository_git_branch");
        if (revision == null || branch == null) return null;
        String tag = null;
        String projectName = env.get("bamboo_planRepository_name");
        return new CIEnvironment(
                "Bamboo",
                revision,
                branch,
                tag,
                projectName
        );
    }
private static CIEnvironment detectBamboo ( Map < String , String > env ) { String revision = env . get ( "bamboo_planRepository_revision" ) ; String branch = env . get ( "bamboo_repository_git_branch" ) ; if ( revision == null || branch == null ) return null ; String tag = null ; String projectName = env . get ( "bamboo_planRepository_name" ) ; return new CIEnvironment ( "Bamboo" , revision , branch , tag , projectName ) ; }
https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html
https : // confluence . atlassian . com / bamboo / bamboo - variables - 289277087 . html