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

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

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

origin: Tapadoo/TCSlackNotifierPlugin

private JsonObject createCommitAttachment(SRunningBuild build) {
  List<SVcsModification>  changes =  build.getChanges(SelectPrevBuildPolicy.SINCE_LAST_SUCCESSFULLY_FINISHED_BUILD, true);
  StringBuilder commitMessage = new StringBuilder();
    /*
     * If this field starts to feel too long in slack, we should only use the first item in the array, which would be the latest change
     *
     */
  for ( int i = 0 ; i < changes.size() ; i++ ){
    SVcsModification modification = changes.get(i);
    String desc = modification.getDescription();
    commitMessage.append("‣ ");
    commitMessage.append(desc);
    if( i < changes.size() - 1 ) {
      commitMessage.append("\n");
    }
  }
  if (changes.size() < 1) {
    return null;
  }
  String commitMessageString = commitMessage.toString();
  JsonObject attachment = new JsonObject();
  attachment.addProperty("title", "Commit Messages");
  attachment.addProperty("fallback" , commitMessageString);
  attachment.addProperty("text" , commitMessageString);
  attachment.addProperty("color" , "#2FA8B9");
  return attachment;
}
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.vcsSVcsModificationgetDescription

Popular methods of SVcsModification

  • getUserName
  • 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 Sublime Text 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