用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/openshift/hypershift --skill test-tag-pipeline命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | test-tag-pipeline |
| description | Create a manual PipelineRun to test tag pipeline changes before merging. |
Create a manual PipelineRun to test tag pipeline changes before merging.
Usage: /test-tag-pipeline <tag-name> [branch-spec]
Arguments:
tag-name (required): The existing tag to rebuild (e.g., v0.1.69)branch-spec (optional): The branch containing the updated pipeline (defaults to main)
[fork:]branch-nameopenshiftWhat this does:
Examples:
# Test main branch pipeline with v0.1.69 tag
/test-tag-pipeline v0.1.69
# Test PR branch pipeline with v0.1.69 tag
/test-tag-pipeline v0.1.69 build-gomaxprocs-image
# Test fork branch pipeline with v0.1.69 tag
/test-tag-pipeline v0.1.69 celebdor:OCPBUGS-63194-part2
Implementation:
IMPORTANT: Execute the commands exactly as shown with only the arguments provided by the user. If no branch argument is specified, the template {{args.1:-main}} will correctly default to main. Do NOT substitute the current git branch or any other inferred values.
Step 1: Verify authentication to Konflux
oc whoami
If the authentication check fails, inform the user they need to log in first:
oc login --web https://api.stone-prd-rh01.pg1f.p1.openshiftapps.com:6443
Step 2: Create the PipelineRun
bash hack/tools/scripts/create-manual-tag-pipelinerun.sh {{args.0}} {{args.1:-main}}
After the PipelineRun is created, extract the name from the output and construct the web UI URL:
Display the full URL to the user so they can monitor progress in the web UI.
You can also monitor it from the CLI with:
# Watch the PipelineRun status
oc get pipelinerun <name> -w
Step 3: After the PipelineRun completes successfully, create a Snapshot to trigger Enterprise Contract validation:
bash hack/tools/scripts/create-snapshot-from-pipelinerun.sh <pipelinerun-name>
After the Snapshot is created, extract the snapshot name from the output and get the EC PipelineRuns:
oc get pipelinerun -l appstudio.openshift.io/snapshot=<snapshot-name> -o name
For each EC PipelineRun, construct and display the web UI URL:
Display the full URLs to the user so they can monitor EC validation in the web UI.
You can also monitor from the CLI with:
# Watch the snapshot status
oc get snapshot <snapshot-name> -w
# Check EC test results
oc get pipelinerun -l appstudio.openshift.io/snapshot=<snapshot-name>
Notes:
yq and oc CLI tools to be installedhack/tools/scripts/create-manual-tag-pipelinerun.sh and hack/tools/scripts/create-snapshot-from-pipelinerun.sh for implementation details