com.atlassian.bamboo.specs.builders.task.VcsPushTask Maven / Gradle / Ivy
package com.atlassian.bamboo.specs.builders.task;
import com.atlassian.bamboo.specs.model.task.VcsPushTaskProperties;
import org.jetbrains.annotations.NotNull;
/**
* This task will push commits created locally by other tasks to the remote repository. Only
* DVCS repositories (which distinguish
* between local and remote commits) can be selected for this task.
*/
public class VcsPushTask extends BaseVcsTask {
@NotNull
@Override
protected VcsPushTaskProperties build() {
return new VcsPushTaskProperties(
description,
taskEnabled,
requirements,
conditions,
defaultRepository,
repository,
workingSubdirectory);
}
@Override
public boolean equals(Object o) {
if (!(o instanceof VcsPushTask)) {
return false;
}
return super.equals(o);
}
@Override
public int hashCode() {
return super.hashCode();
}
}