-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
eromanova97
wants to merge
1
commit into
openshift:pipelines-docs-main
Choose a base branch
from
eromanova97:RHDEVDOCS-6238
base: pipelines-docs-main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
.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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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!