Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHDEVDOCS-6238: [DOC] Import jib-maven task #85280

Open
wants to merge 1 commit into
base: pipelines-docs-main
Choose a base branch
from
Open
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
62 changes: 62 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,68 @@ 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 source into a container image using the Jib tool that works with Maven projects.
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.
|===

.Changes from the `jib-maven` `ClusterTask`

* TBD
Comment on lines +318 to +320
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 here for users updating from cluster task to this task?


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