2021-08-18 12:10:55 +02:00
|
|
|
# ${docGenStepName}
|
|
|
|
|
|
|
|
## ${docGenDescription}
|
|
|
|
|
2021-09-14 15:38:58 +02:00
|
|
|
### Additional hints
|
|
|
|
|
|
|
|
To run the `cnbBuild` with a different builder, you can specify the `dockerImage` parameter.
|
|
|
|
Without specifying it, the step will run with the `paketobuildpacks/builder:full` builder.
|
|
|
|
|
2021-08-18 12:10:55 +02:00
|
|
|
## ${docGenParameters}
|
|
|
|
|
|
|
|
## ${docGenConfiguration}
|
|
|
|
|
|
|
|
## ${docJenkinsPluginDependencies}
|
2021-09-14 15:38:58 +02:00
|
|
|
|
|
|
|
## Example 1
|
|
|
|
|
|
|
|
```groovy
|
|
|
|
cnbBuild(
|
|
|
|
script: script,
|
|
|
|
dockerConfigJsonCredentialsId: 'DOCKER_REGISTRY_CREDS',
|
|
|
|
containerImageName: 'images/example',
|
|
|
|
containerImageTag: 'v0.0.1',
|
|
|
|
containerImageRegistryUrl: 'gcr.io'
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example 2: User provided builder
|
|
|
|
|
|
|
|
```groovy
|
|
|
|
cnbBuild(
|
|
|
|
script: script,
|
|
|
|
dockerConfigJsonCredentialsId: 'DOCKER_REGISTRY_CREDS',
|
|
|
|
dockerImage: 'paketobuildpacks/builder:base',
|
|
|
|
containerImageName: 'images/example',
|
|
|
|
containerImageTag: 'v0.0.1',
|
|
|
|
containerImageRegistryUrl: 'gcr.io'
|
|
|
|
)
|
|
|
|
```
|
2021-09-14 16:14:50 +02:00
|
|
|
|
|
|
|
## Example 3: User provided buildpacks
|
|
|
|
|
|
|
|
```groovy
|
|
|
|
cnbBuild(
|
|
|
|
script: script,
|
|
|
|
dockerConfigJsonCredentialsId: 'DOCKER_REGISTRY_CREDS',
|
|
|
|
containerImageName: 'images/example',
|
|
|
|
containerImageTag: 'v0.0.1',
|
|
|
|
containerImageRegistryUrl: 'gcr.io',
|
|
|
|
buildpacks: ['gcr.io/paketo-buildpacks/nodejs', 'paketo-community/build-plan']
|
|
|
|
)
|
|
|
|
```
|