Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Map committer to QuickBuild user case insensitively #3723

robinshen ADMIN ·

To do it, use below user mapping script in advanced setting of repository definition:

groovy:
import org.hibernate.criterion.Restrictions;
import com.pmease.quickbuild.SearchCriteria;
import com.pmease.quickbuild.entitymanager.UserManager;

def criteria = SearchCriteria.of(Restrictions.ilike("name", committer));
def users = UserManager.instance.search(criteria, 0, 1);
if (!users.isEmpty())
  return users[0].name;
else
  return null;
  • replies 0
  • views 259
  • stars 0