Search in sources :

Example 1 with SubmoduleOp

use of com.google.gerrit.server.submit.SubmoduleOp in project gerrit by GerritCodeReview.

the class SuperprojectUpdateSubmissionListener method afterSubmission.

@Override
public void afterSubmission(MergeOpRepoManager orm) {
    collectSuccessfullUpdates();
    // Update superproject gitlinks if required.
    if (!updatedBranches.isEmpty()) {
        try {
            SubmoduleOp op = subOpFactory.create(updatedBranches, orm);
            op.updateSuperProjects(dryrun);
        } catch (RestApiException e) {
            logger.atWarning().withCause(e).log("Can't update the superprojects");
        }
    }
}
Also used : SubmoduleOp(com.google.gerrit.server.submit.SubmoduleOp) RestApiException(com.google.gerrit.extensions.restapi.RestApiException)

Aggregations

RestApiException (com.google.gerrit.extensions.restapi.RestApiException)1 SubmoduleOp (com.google.gerrit.server.submit.SubmoduleOp)1