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

com.redhat.parodos.examples.move2kube.task.GitBranchTask Maven / Gradle / Ivy

There is a newer version: 1.0.20
Show newest version
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();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy