This repository contains Kuadrant testsuite pipeline objects
openshift-pipelines
Openshift operator on the clusteroc apply -k main/ -n ${PIPELINE_NAMESPACE}
oc apply -k nightly/ -n ${PIPELINE_NAMESPACE}
Prior to the running of the pipeline, the following resources must be created in the pipeline namespace:
openshift-pipelines-credentials
containing KUBE_PASSWORD
and KUBE_USER
keys
with the credentials to access the testing cluster. E.g.
kubectl create secret generic openshift-pipelines-credentials --from-literal=KUBE_USER="admin" --from-literal=KUBE_PASSWORD="admin" -n ${PIPELINE_NAMESPACE}
rp-credentials
containing RP_URL
key with the URL of the ReportPortal instance
and RP_TOKEN
key with the ReportPortal user access token. E.g.
kubectl create secret generic rp-credentials --from-literal=RP_URL="https://reportportal-kuadrant-qe.example.io" --from-literal=RP_TOKEN="api-token" -n ${PIPELINE_NAMESPACE}
rp-ca-bundle
containing the certificates trusted by the ReportPortal instance under the tls-ca-bundle.pem
key. E.g.
kubectl create cm rp-ca-bundle --from-file=tls-ca-bundle.pem=./tls-ca-bundle.pem -n ${PIPELINE_NAMESPACE}
settings.local.yaml
key. Just copy the default testsuite settings if you don't need anything else. E.g.
kubectl create cm pipeline-settings --from-file=settings.local.yaml=./settings.local.yaml -n ${PIPELINE_NAMESPACE}
Pipelines
section in the OpenShift Web ConsolePipeline
object to be executedStart
buttonStart
buttonPipelineRun
resource directly
PipelineRun
resource directly in the namespace with pipelinePipelineRun
resource should contain all required parameterstkn
CLI
tkn
CLI tooltkn pipeline start
command with the required parameterskubectl create job --from=cronjob/trigger-nightly-pipeline trigger-nightly-pipeline-$(date +%d_%m)-$(whoami)-manual -n ${PIPELINE_NAMESPACE}
kubectl patch tektonconfig config --type=merge -p '{"spec":{"pruner":{"disabled":false,"keep":7,"resources":["pipelinerun"],"schedule":"0 0 * * 0"}}}'