You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
step-registry/sandboxed-containers-operator: Add run command to create-prowjob-commands.sh
- Add 'run' command as placeholder for future prowjob execution
- Update usage help to include run command
- Add command_run() function with unimplemented message
- Maintain backward compatibility with create command
Assisted-by: Cursor
Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
PROW_API_TOKEN=your_token_here ci-operator/step-registry/sandboxed-containers-operator/create-prowjob/sandboxed-containers-operator-create-prowjob-commands.sh run openshift-sandboxed-containers-operator-devel__downstream-candidate419.yaml
55
+
56
+
# Run specific job
57
+
PROW_API_TOKEN=your_token_here ci-operator/step-registry/sandboxed-containers-operator/create-prowjob/sandboxed-containers-operator-create-prowjob-commands.sh run openshift-sandboxed-containers-operator-devel__downstream-candidate419.yaml azure-ipi-kata
To trigger ProwJobs via the REST API, you need an authentication token. Each SSO user is entitled to obtain a personal authentication token.
261
+
262
+
### Obtaining a Token
263
+
264
+
Tokens can be retrieved through the UI of the app.ci cluster at [OpenShift Console](https://console-openshift-console.apps.ci.l2s4.p1.openshiftapps.com). Alternatively, if the app.ci cluster context is already configured, you may execute:
265
+
266
+
```bash
267
+
oc whoami -t
268
+
```
269
+
270
+
### Using the Token
271
+
272
+
Once you have obtained a token, set it as an environment variable:
273
+
274
+
```bash
275
+
export PROW_API_TOKEN=your_token_here
276
+
```
277
+
278
+
For complete information about triggering ProwJobs via REST, including permanent tokens for automation, see the [OpenShift CI documentation](https://docs.ci.openshift.org/docs/how-tos/triggering-prowjobs-via-rest/#obtaining-an-authentication-token).
Copy file name to clipboardExpand all lines: ci-operator/step-registry/sandboxed-containers-operator/create-prowjob/sandboxed-containers-operator-create-prowjob-commands.sh
+170-1Lines changed: 170 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
# script to create prowjobs in ci-operator/config/openshift/sandboxed-containers-operator using environment variables.
3
3
# Usage:
4
4
# ./sandboxed-containers-operator-create-prowjob-commands.sh gen # Generate prowjob configuration
5
+
# ./sandboxed-containers-operator-create-prowjob-commands.sh run # Run prowjobs
5
6
# should be run in a branch of a fork of https://github.com/openshift/release/
6
7
7
8
# created with the assistance of Cursor AI
@@ -10,6 +11,10 @@ set -o nounset
10
11
set -o errexit
11
12
set -o pipefail
12
13
14
+
# Endpoint for the Gangway API (https://docs.prow.k8s.io/docs/components/optional/gangway/)
0 commit comments