All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.build.axion.release.domain.scm.ScmPushResult Maven / Gradle / Ivy

The newest version!
package pl.allegro.tech.build.axion.release.domain.scm;

import org.eclipse.jgit.transport.RemoteRefUpdate;

import java.util.Optional;

public class ScmPushResult {

    private final ScmPushResultOutcome outcome;

    private final Optional failureCause;

    private final Optional remoteMessage;

    public ScmPushResult(ScmPushResultOutcome outcome,
                         Optional failureCause,
                         Optional remoteMessage) {
        this.outcome = outcome;
        this.failureCause = failureCause;
        this.remoteMessage = remoteMessage;
    }

    public ScmPushResultOutcome getOutcome() {
        return outcome;
    }

    public Optional getFailureStatus() {
        return failureCause;
    }

    public Optional getRemoteMessage() {
        return remoteMessage;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy