com.redhat.parodos.examples.move2kube.task.GitBranchTask Maven / Gradle / Ivy
package com.redhat.parodos.examples.move2kube.task;
import java.util.List;
import java.util.stream.Collectors;
import com.redhat.parodos.workflow.parameter.WorkParameter;
import com.redhat.parodos.workflows.work.WorkContext;
import lombok.NonNull;
public class GitBranchTask extends com.redhat.parodos.tasks.git.GitBranchTask {
@Override
public @NonNull List getWorkFlowTaskParameters() {
return super.getWorkFlowTaskParameters().stream().filter(param -> !param.getKey().equals("path"))
.collect(Collectors.toList());
}
public String getRepoPath(WorkContext workContext) {
// comes from GitClonePrebuiltTask
return workContext.get("gitDestination").toString();
}
}