Package com.atlassian.bamboo.commit

Examples of com.atlassian.bamboo.commit.CommitImpl


    protected void addChangesetsToPendingCommmits(ChangesetInfo[] changesets, List<Commit> commits)
      throws RepositoryException {

    for(ChangesetInfo changeset : changesets) {
      CommitImpl commit = new CommitImpl();
      commit.setAuthor(new AuthorImpl(changeset.getOwner()));
      commit.setDate(changeset.getDate());
      commit.setComment("Branch: " + changeset.getChangesetBranch() +
          "; Changeset num: " + changeset.getChangesetId() +
          ". Comments: " +  changeset.getComments());
      List<CommitFile> files = getFiles(changeset.getChangesetId());
      commit.setFiles(files);
      commits.add(commit);
    }
  }
View Full Code Here

TOP

Related Classes of com.atlassian.bamboo.commit.CommitImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.