Skip to content

feat(layered-products): trigger build on artc cluster via --on-cluster - #4795

Merged
ashwindasr merged 1 commit into
openshift-eng:masterfrom
ashwindasr:feat/layered-products-on-cluster
Aug 20, 2026
Merged

feat(layered-products): trigger build on artc cluster via --on-cluster#4795
ashwindasr merged 1 commit into
openshift-eng:masterfrom
ashwindasr:feat/layered-products-on-cluster

Conversation

@ashwindasr

Copy link
Copy Markdown
Contributor

Summary

  • Add `--on-cluster` to the `artcd build-layered-products` command so the Jenkins job triggers the `build-layered-products` Tekton PipelineRun in the `layered-products` namespace on the artc cluster, blocking until completion with logs streamed to the Jenkins console (via `tkn pipeline start --showlog`)
  • Add `art-cluster-layered-products-pipeline-kubeconfig` Jenkins credential binding (exposes `ART_CLUSTER_LAYERED_PRODUCTS_KUBECONFIG` env var)
  • Remove `returnStdout: true` from `sh()` so `tkn --showlog` output flows to the Jenkins build log

All existing credentials are retained unchanged.

Pre-requisites

A Jenkins credential `art-cluster-layered-products-pipeline-kubeconfig` must be created (file type) containing a kubeconfig for a ServiceAccount in the `layered-products` namespace with permission to create/watch PipelineRuns.

Companion PRs

Test plan

  • Confirm `art-cluster-layered-products-pipeline-kubeconfig` credential exists in Jenkins
  • Run a dry-run build and verify a PipelineRun is created in the `layered-products` namespace on artc
  • Confirm Tekton logs stream to the Jenkins console
  • Confirm build result reflects the PipelineRun outcome

Made with Cursor

@openshift-ci

openshift-ci Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign joepvd for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ashwindasr
ashwindasr force-pushed the feat/layered-products-on-cluster branch 3 times, most recently from 396a24e to a927e2e Compare August 20, 2026 15:09
Switch to triggering the build-layered-products Tekton pipeline in the
layered-products namespace on artc (artcd --on-cluster) and watching
until completion, rather than running the build locally on the Jenkins agent.

- Add --on-cluster so the job triggers a PipelineRun on artc and blocks
  via tkn pipeline start --showlog (logs stream to Jenkins console)
- Add art-cluster-layered-products-pipeline-kubeconfig credential that
  provides the kubeconfig for the layered-products SA on artc
- Remove returnStdout from sh() so tkn log output is visible in Jenkins

Pre-req: Jenkins credential art-cluster-layered-products-pipeline-kubeconfig
must be created with a SA kubeconfig for the layered-products namespace.

Companion PRs:
- art-tools: openshift-eng/art-tools#3316
- art-config: openshift-eng/art-config#166

Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: Cursor <cursoragent@cursor.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@ashwindasr
ashwindasr force-pushed the feat/layered-products-on-cluster branch from a927e2e to d132811 Compare August 20, 2026 15:28
@ashwindasr
ashwindasr merged commit ba6739f into openshift-eng:master Aug 20, 2026
0 of 2 checks passed
@ashwindasr
ashwindasr deleted the feat/layered-products-on-cluster branch August 20, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant