Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions modules/op-resolver-cluster-tasks-ref.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,65 @@ spec:
* All result names were changed to uppercase.
* The `gitInitImage` parameter was removed.

[discrete]
[id="op-taskref-jib-maven_{context}"]
== jib-maven

The `jib-maven` task builds Java, Kotlin, Groovy, and Scala sources into a container image by using the Jib tool for Maven projects. The Jib tool then pushes the image to the specified registry and provides an image digest for reference.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took this line from the yaml file, but I am not sure about the support downstream, @aneeshmbhat could you please let me know?? Thank you!


.Example usage of the `jib-maven` task
[source,yaml,subs="attributes+"]
----
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: build-and-deploy
spec:
# ...
tasks:
# ...
- name: build-from-source
taskRef:
resolver: cluster
params:
- name: kind
value: task
- name: name
value: jib-maven
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: shared-workspace
# ...
----

.Supported parameters for the `jib-maven` task
[cols="1,2,1,1",options="header"]
|===
| Parameter | Description | Type | Default value
|`IMAGE` | The fully qualified name of the image to build. |`string` |
|`DIRECTORY` | The directory that contains the app, relative to the source repository root. |`string` | `.`
|`INSECUREREGISTRY` | Allow an insecure registry. |`string` | `"false"`
|`CACERTFILE` | CA certification file name for insecure registry service. |`string` | `service-ca.crt`
|===

.Supported workspaces for the `jib-maven` task
[cols="1,3",options="header"]
|===
| Workspace | Description
|`source` |The workspace that contains the Maven project.
|`sslcertdirt` |The optional workspace that contains SSL certificates.
|`dockerconfig` |The optional workspace that contains the `docker` configuration.
|===

.Results that the `jib-maven` task returns
[cols="1,1,2",options="header"]
|===
| Result | Type | Description
|`IMAGE_DIGEST` |`string` |Digest of the image that was built.
|===
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aneeshmbhat do we want to have something in this section regarding "changes from the jib-maven ClusterTask " here, similarly to the other examples, for users updating from cluster task to this task?


[discrete]
[id="op-taskref-kn_{context}"]
== kn
Expand Down