Files
gh-konflux-ci-skills-skills…/tests/results/parse-pipelinerun-url-components.2.txt
2025-11-30 08:35:21 +08:00

27 lines
1.1 KiB
Plaintext

# skill_digest: f15347d6f22704568ffc3656768cb503c13f92a22a775a59d9b0fda007964bfb
Great! For your Konflux URL `https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rhtap-integration-tenant/pipelinerun/yq-on-pull-request-69sq8`, I'll extract the details for you using the parsing method described in the skill documentation:
```bash
url="https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rhtap-integration-tenant/pipelinerun/yq-on-pull-request-69sq8"
cluster=$(echo "$url" | sed 's|https://\([^/]*\).*|\1|')
namespace=$(echo "$url" | sed 's|.*/ns/\([^/]*\).*|\1|')
pipelinerun=$(echo "$url" | sed 's|.*/pipelinerun/\([^/?]*\).*|\1|')
echo "Cluster: $cluster"
echo "Namespace: $namespace"
echo "PipelineRun: $pipelinerun"
```
These values are:
- Cluster: `konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com`
- Namespace: `rhtap-integration-tenant`
- PipelineRun: `yq-on-pull-request-69sq8`
You can now use these with kubectl commands, for example:
```bash
kubectl get pipelinerun yq-on-pull-request-69sq8 -n rhtap-integration-tenant
```
Would you like me to help you investigate this PipelineRun further?