Tabnine Logo
SVcsModification.getUserName
Code IndexAdd Tabnine to your IDE (free)

How to use
getUserName
method
in
jetbrains.buildServer.vcs.SVcsModification

Best Java code snippets using jetbrains.buildServer.vcs.SVcsModification.getUserName (Showing top 2 results out of 315)

origin: PeteGoo/tcSlackBuildNotifier

public void populateCommits(SRunningBuild sRunningBuild) {
  List<SVcsModification> changes = sRunningBuild.getContainingChanges();
  if (changes == null) {
    return;
  }
  for (SVcsModification change : changes) {
    Collection<SUser> committers = change.getCommitters();
    String slackUserId = null;
    if (!committers.isEmpty()) {
      SUser committer = committers.iterator().next();
      slackUserId = committer.getPropertyValue(SlackNotificator.USERID_KEY);
      Loggers.ACTIVITIES.debug("Resolved committer " + change.getUserName() + " to Slack User " + slackUserId);
    }
    commits.add(new Commit(change.getVersion(), change.getDescription(), change.getUserName(), slackUserId));
  }
}
origin: tcplugins/tcWebHooks

public static WebHooksChange build(SVcsModification modification) {
  WebHooksChange change = new WebHooksChange();
  change.setComment(modification.getDescription());
  change.setUsername(modification.getUserName());
  change.setVcsRoot(modification.getVcsRoot().getName());
  for (VcsFileModification fileModification: modification.getChanges()){
    change.files.add(fileModification.getRelativeFileName());
  }
  return change;
}
jetbrains.buildServer.vcsSVcsModificationgetUserName

Popular methods of SVcsModification

  • getDescription
  • getVersion
  • getChanges
  • getCommitters
  • getDisplayVersion
  • getVcsRoot

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now