Initial commit
This commit is contained in:
26
tests/results/parse-pipelinerun-url-components.2.txt
Normal file
26
tests/results/parse-pipelinerun-url-components.2.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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?
|
||||
Reference in New Issue
Block a user