public class Pipelines extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JOB_NAME |
static String |
PIPELINE_KIND |
Constructor and Description |
---|
Pipelines() |
Modifier and Type | Method and Description |
---|---|
static Pipeline |
getPipeline(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient,
String namespace,
JobEnvironment jobEnvironment)
Looks up the pipeline kind based on the configuration in the given kubernetes namespace.
|
static Pipeline |
getPipeline(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient,
String namespace,
Map<String,String> jobEnvironment)
Looks up the pipeline kind based on the configuration in the given kubernetes namespace.
|
static Pipeline |
getPipeline(Map<String,String> jobEnvironment)
Looks up the pipeline kind based on the configuration in the given kubernetes namespace.
|
static Pipeline |
getPipeline(String namespace,
Map<String,String> jobEnvironment)
Looks up the pipeline kind based on the configuration in the given kubernetes namespace.
|
public static final String PIPELINE_KIND
public static final String JOB_NAME
public static Pipeline getPipeline(Map<String,String> jobEnvironment) throws IntrospectionException
NOTE that you should pass in the BRANCH_NAME
and GIT_URL
environment variables
so that this function can properly detect if a build should be a CD
build or not!
IntrospectionException
public static Pipeline getPipeline(String namespace, Map<String,String> jobEnvironment) throws IntrospectionException
NOTE that you should pass in the BRANCH_NAME
and GIT_URL
environment variables
so that this function can properly detect if a build should be a CD
build or not!
IntrospectionException
public static Pipeline getPipeline(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String namespace, Map<String,String> jobEnvironment) throws IntrospectionException
NOTE that you should pass in the BRANCH_NAME
and GIT_URL
environment variables
so that this function can properly detect if a build should be a CD
build or not!
IntrospectionException
public static Pipeline getPipeline(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String namespace, JobEnvironment jobEnvironment) throws IntrospectionException
NOTE that you should pass in the BRANCH_NAME
and GIT_URL
environment variables
so that this function can properly detect if a build should be a CD
build or not!
IntrospectionException
Copyright © 2011–2017 Red Hat. All rights reserved.