Skip to content

build.v1.buildSource

"BuildSource is the SCM used for the build."

Index

Fields

fn withConfigMaps

withConfigMaps(configMaps)

"configMaps represents a list of configMaps and their destinations that will be used for the build."

fn withConfigMapsMixin

withConfigMapsMixin(configMaps)

"configMaps represents a list of configMaps and their destinations that will be used for the build."

Note: This function appends passed data to existing values

fn withContextDir

withContextDir(contextDir)

"contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository."

fn withDockerfile

withDockerfile(dockerfile)

"dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir."

fn withImages

withImages(images)

"images describes a set of images to be used to provide source for the build"

fn withImagesMixin

withImagesMixin(images)

"images describes a set of images to be used to provide source for the build"

Note: This function appends passed data to existing values

fn withSecrets

withSecrets(secrets)

"secrets represents a list of secrets and their destinations that will be used only for the build."

fn withSecretsMixin

withSecretsMixin(secrets)

"secrets represents a list of secrets and their destinations that will be used only for the build."

Note: This function appends passed data to existing values

fn withType

withType(type)

"type of build input to accept"

obj binary

"BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, where the file will be extracted and used as the build source."

fn binary.withAsFile

withAsFile(asFile)

"asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying \"webapp.war\" would place the provided binary as /webapp.war for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'."

obj git

"GitBuildSource defines the parameters of a Git SCM"

fn git.withHttpProxy

withHttpProxy(httpProxy)

"httpProxy is a proxy used to reach the git repository over http"

fn git.withHttpsProxy

withHttpsProxy(httpsProxy)

"httpsProxy is a proxy used to reach the git repository over https"

fn git.withNoProxy

withNoProxy(noProxy)

"noProxy is the list of domains for which the proxy should not be used"

fn git.withRef

withRef(ref)

"ref is the branch/tag/ref to build."

fn git.withUri

withUri(uri)

"uri points to the source that will be built. The structure of the source will depend on the type of build to run"

obj sourceSecret

"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."

fn sourceSecret.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"