JenkinsSpec holds optional Jenkins job config
| Stanza | Type | Required | Description |
|---|---|---|---|
branch_source_job |
bool | No | Job is managed by the GH branch source plugin and requires a specific path |
PipelineRunParam represents a param used by the pipeline run
| Stanza | Type | Required | Description |
|---|---|---|---|
name |
string | No | Name is the name of the param |
value_template |
string | No | ValueTemplate is the template used to build the value from well know variables |
Postsubmit runs on push events.
| Stanza | Type | Required | Description |
|---|---|---|---|
decorate |
bool | No | Decorate determines if we decorate the PodSpec or not |
path_alias |
string | No | PathAlias is the location under /src where the repository under test is cloned. If this is not set, /src/github.com/org/repo will be used as the default. |
clone_uri |
string | No | CloneURI is the URI that is used to clone the repository. If unset, will default to https://github.com/org/repo.git. |
skip_submodules |
bool | No | SkipSubmodules determines if submodules should be cloned when the job is run. Defaults to true. |
clone_depth |
int | No | CloneDepth is the depth of the clone that will be used. A depth of zero will do a full clone. |
name |
string | Yes | The name of the job. Must match regex [A-Za-z0-9-._]+ e.g. pull-test-infra-bazel-build |
labels |
map[string]string | No | Labels are added to LighthouseJobs and pods created for this job. |
annotations |
map[string]string | No | Annotations are unused by prow itself, but provide a space to configure other automation. |
max_concurrency |
int | No | MaximumConcurrency of this job, 0 implies no limit. |
agent |
string | Yes | Agent that will take care of running this job. |
cluster |
string | No | Cluster is the alias of the cluster to run this job in. (Default: kube.DefaultClusterAlias) |
namespace |
*string | No | Namespace is the namespace in which pods schedule. nil: results in config.PodNamespace (aka pod default) empty: results in config.LighthouseJobNamespace (aka same as LighthouseJob) |
error_on_eviction |
bool | No | ErrorOnEviction indicates that the LighthouseJob should be completed and given the ErrorState status if the pod that is executing the job is evicted. If this field is unspecified or false, a new pod will be created to replace the evicted one. |
source |
string | No | SourcePath contains the path where the tekton pipeline run is defined |
spec |
*PodSpec | No | Spec is the Kubernetes pod spec used if Agent is kubernetes. |
pipeline_run_spec |
*PipelineRunSpec | No | PipelineRunSpec is the Tekton PipelineRun spec used if agent is tekton-pipeline |
pipeline_run_params |
[]PipelineRunParam | No | PipelineRunParams are the params used by the pipeline run |
run_if_changed |
string | No | RunIfChanged defines a regex used to select which subset of file changes should trigger this job. If any file in the changeset matches this regex, the job will be triggered |
ignore_changes |
string | No | IgnoreChanges defines a regex used to select which file changes should be ignored |
skip_branches |
[]string | No | Do not run against these branches. Default is no branches. |
branches |
[]string | No | Only run against these branches. Default is all branches. |
context |
string | No | Context is the name of the GitHub status context for the job. Defaults: the same as the name of the job. |
skip_report |
bool | No | SkipReport skips commenting and setting status on GitHub. |
jenkins_spec |
*JenkinsSpec | No |
Presubmit runs on PRs.
| Stanza | Type | Required | Description |
|---|---|---|---|
decorate |
bool | No | Decorate determines if we decorate the PodSpec or not |
path_alias |
string | No | PathAlias is the location under /src where the repository under test is cloned. If this is not set, /src/github.com/org/repo will be used as the default. |
clone_uri |
string | No | CloneURI is the URI that is used to clone the repository. If unset, will default to https://github.com/org/repo.git. |
skip_submodules |
bool | No | SkipSubmodules determines if submodules should be cloned when the job is run. Defaults to true. |
clone_depth |
int | No | CloneDepth is the depth of the clone that will be used. A depth of zero will do a full clone. |
name |
string | Yes | The name of the job. Must match regex [A-Za-z0-9-._]+ e.g. pull-test-infra-bazel-build |
labels |
map[string]string | No | Labels are added to LighthouseJobs and pods created for this job. |
annotations |
map[string]string | No | Annotations are unused by prow itself, but provide a space to configure other automation. |
max_concurrency |
int | No | MaximumConcurrency of this job, 0 implies no limit. |
agent |
string | Yes | Agent that will take care of running this job. |
cluster |
string | No | Cluster is the alias of the cluster to run this job in. (Default: kube.DefaultClusterAlias) |
namespace |
*string | No | Namespace is the namespace in which pods schedule. nil: results in config.PodNamespace (aka pod default) empty: results in config.LighthouseJobNamespace (aka same as LighthouseJob) |
error_on_eviction |
bool | No | ErrorOnEviction indicates that the LighthouseJob should be completed and given the ErrorState status if the pod that is executing the job is evicted. If this field is unspecified or false, a new pod will be created to replace the evicted one. |
source |
string | No | SourcePath contains the path where the tekton pipeline run is defined |
spec |
*PodSpec | No | Spec is the Kubernetes pod spec used if Agent is kubernetes. |
pipeline_run_spec |
*PipelineRunSpec | No | PipelineRunSpec is the Tekton PipelineRun spec used if agent is tekton-pipeline |
pipeline_run_params |
[]PipelineRunParam | No | PipelineRunParams are the params used by the pipeline run |
skip_branches |
[]string | No | Do not run against these branches. Default is no branches. |
branches |
[]string | No | Only run against these branches. Default is all branches. |
run_if_changed |
string | No | RunIfChanged defines a regex used to select which subset of file changes should trigger this job. If any file in the changeset matches this regex, the job will be triggered |
ignore_changes |
string | No | IgnoreChanges defines a regex used to select which file changes should be ignored |
context |
string | No | Context is the name of the GitHub status context for the job. Defaults: the same as the name of the job. |
skip_report |
bool | No | SkipReport skips commenting and setting status on GitHub. |
always_run |
bool | Yes | AlwaysRun automatically for every PR, or only when a comment triggers it. However if A PR contains files that are included by the ignore changes regex, then a build wont be triggered |
require_run |
bool | No | RequireRun if this value is true and AlwaysRun is false then we need to manually trigger this context for the PR to be allowed to auto merge. |
optional |
bool | No | Optional indicates that the job's status context should not be required for merge. |
trigger |
string | No | Trigger is the regular expression to trigger the job. e.g. @k8s-bot e2e test thisRerunCommand must also be specified if this field is specified. (Default: (?m)^/test (?:.*? )?<job name>(?: .*?)?$) |
rerun_command |
string | No | The RerunCommand to give users. Must match Trigger. Trigger must also be specified if this field is specified. (Default: /test <job name>) |
jenkins_spec |
*JenkinsSpec | No |