Skip to content

hashgraph-online/awesome-codex-plugins / plugins/avivsinai/jenkins-cli/skills/jk

Manage Jenkins controllers with jk, including jobs, runs, logs, artifacts, credentials, nodes, queues, and plugins.

FileKindSize
SKILL.mdskill md3.1 KB
references/commands.mdmarkdown15.4 KB
rules/artifact.mdmarkdown1.8 KB
rules/auth.mdmarkdown3.1 KB
rules/context.mdmarkdown2.4 KB
rules/cred.mdmarkdown2.9 KB
rules/job.mdmarkdown7.5 KB
rules/node.mdmarkdown3.0 KB
rules/other.mdmarkdown3.6 KB
rules/plugin.mdmarkdown3.1 KB
rules/queue.mdmarkdown1.5 KB
rules/run.mdmarkdown12.5 KB
rules/test.mdmarkdown1.0 KB

rules/job.md

View on GitHub
<!-- auto-generated by cmd/docgen — do not edit -->

# jk job

Manage Jenkins jobs and pipelines

```
jk job <command> [flags]
```

## Subcommands

| Subcommand | Description | Key Flags |
|---|---|---|
| [config](#jk-job-config) | Fetch a job's raw config.xml | — |
| [configure](#jk-job-configure) | Update a job's config.xml | `--file`, `--script-path`, `--stdin` |
| [create](#jk-job-create) | Create a Jenkins job | `--bitbucket-url`, `--branch-strategy`, `--credentials`, `--description` |
| [ls](#jk-job-ls) | List job names in a folder | `--folder` |
| [scan](#jk-job-scan) | Trigger a Multibranch Pipeline rescan | — |
| [view](#jk-job-view) | View job details | — |

## jk job config

Fetch a job's raw config.xml.

This command writes the XML payload directly to stdout so it can be
piped into tools like `xmllint`, redirected to a file, or round-tripped
back into `jk job configure --stdin`.

Structured output flags are not supported for this command; output is
always raw XML.

### Usage

```
jk job config <jobPath> [flags]
```

### Inherited Flags

| Flag | Short | Description |
|---|---|---|
| `--context` | `-c` | Active Jenkins context name (or set JK_CONTEXT env var) |
| `--format` |  | Output format: json, yaml |
| `--jq` |  | Filter JSON output using jq expression (requires --json or --format=json) |
| `--json` |  | Output in JSON format when supported |
| `--quiet` | `-q` | Suppress non-essential output |
| `--template` | `-t` | Format output using Go template (requires --json or --format=json) |
| `--yaml` |  | Output in YAML format when supported |

### Examples

```bash
jk job config platform/services/auth-relay
  jk job config platform/services/auth-relay > auth-relay.config.xml
  jk job config platform/services/auth-relay | xmllint --format -
```

## jk job configure

Update a job's config.xml.

Use `--file` or `--stdin` to post a full raw XML replacement, or use
`--script-path` to fetch, patch, and post a Multibranch Pipeline config.

### Usage

```
jk job configure <jobPath> [flags]
```

### Flags

| Flag | Short | Description |
|---|---|---|
| `--file` |  | Read a full config.xml replacement from a file |
| `--script-path` |  | Patch the Multibranch Pipeline Jenkinsfile path |
| `--stdin` |  | Read a full config.xml replacement from standard input |

### Inherited Flags

| Flag | Short | Description |
|---|---|---|
| `--context` | `-c` | Active Jenkins context name (or set JK_CONTEXT env var) |
| `--format` |  | Output format: json, yaml |
| `--jq` |  | Filter JSON output using jq expression (requires --json or --format=json) |
| `--json` |  | Output in JSON format when supported |
| `--quiet` | `-q` | Suppress non-essential output |
| `--template` | `-t` | Format output using Go template (requires --json or --format=json) |
| `--yaml` |  | Output in YAML format when supported |

### Examples

```bash
jk job configure platform/services/auth-relay --file auth-relay.config.xml
  cat auth-relay.config.xml | jk job configure platform/services/auth-relay --stdin
  jk job configure platform/services/auth-relay --script-path services/auth-relay/Jenkinsfile
```

## jk job create

Create a Jenkins job.

By default this command creates a Multibranch Pipeline backed by a Bitbucket
repository and configures the Jenkinsfile path.

With --file or --stdin it creates a job of ANY type (Pipeline, Freestyle,
Multibranch, Folder) from a full config.xml, like `jk job config` prints.

If Jenkins creates the job but a later config.xml step fails, the partially
created job remains and may need cleanup via the Jenkins UI.

### Usage

```
jk job create <name> [flags]
```

### Flags

| Flag | Short | Description |
|---|---|---|
| `--bitbucket-url` |  | Bitbucket server URL |
| `--branch-strategy` |  | Branch discovery strategy: all, exclude-prs, only-prs |
| `--credentials` |  | Jenkins credentials ID for the Bitbucket source |
| `--description` |  | Job description |
| `--discover-fork-prs` |  | Discover pull requests raised from forks using TrustTeamForks |
| `--discover-origin-prs` |  | Discover pull requests raised from the origin repository |
| `--file` |  | Create the job from a full config.xml file (any job type) |
| `--folder` |  | Folder path where the job should be created |
| `--repo-owner` |  | Bitbucket repository owner/workspace |
| `--repository` |  | Bitbucket repository name |
| `--script-path` |  | Path to the Jenkinsfile inside the repository |
| `--stdin` |  | Create the job from a full config.xml on standard input (any job type) |

### Inherited Flags

| Flag | Short | Description |
|---|---|---|
| `--context` | `-c` | Active Jenkins context name (or set JK_CONTEXT env var) |
| `--format` |  | Output format: json, yaml |
| `--jq` |  | Filter JSON output using jq expression (requires --json or --format=json) |
| `--json` |  | Output in JSON format when supported |
| `--quiet` | `-q` | Suppress non-essential output |
| `--template` | `-t` | Format output using Go template (requires --json or --format=json) |
| `--yaml` |  | Output in YAML format when supported |

### Examples

```bash
jk job create auth-relay \
    --folder platform/services \
    --repo-owner playg \
    --repository my-service-repo \
    --script-path services/auth-relay/Jenkinsfile \
    --credentials bitbucket-readonly
  jk job create amit-release --file amit-release.config.xml
```

## jk job ls

List job names and URLs. Use this to discover what jobs exist, not to search build history.

Related commands:
  jk search --job-glob '<pattern>'      Search for jobs by pattern

### Usage

```
jk job ls [folder] [flags]
```

### Flags

| Flag | Short | Description |
|---|---|---|
| `--folder` |  | Folder path to list jobs from |

### Inherited Flags

| Flag | Short | Description |
|---|---|---|
| `--context` | `-c` | Active Jenkins context name (or set JK_CONTEXT env var) |
| `--format` |  | Output format: json, yaml |
| `--jq` |  | Filter JSON output using jq expression (requires --json or --format=json) |
| `--json` |  | Output in JSON format when supported |
| `--quiet` | `-q` | Suppress non-essential output |
| `--template` | `-t` | Format output using Go template (requires --json or --format=json) |
| `--yaml` |  | Output in YAML format when supported |

## jk job scan

Trigger a Multibranch Pipeline rescan.

The command validates that the target job is a Multibranch Pipeline
before posting the Jenkins scan trigger endpoint.

### Usage

```
jk job scan <jobPath> [flags]
```

### Inherited Flags

| Flag | Short | Description |
|---|---|---|
| `--context` | `-c` | Active Jenkins context name (or set JK_CONTEXT env var) |
| `--format` |  | Output format: json, yaml |
| `--jq` |  | Filter JSON output using jq expression (requires --json or --format=json) |
| `--json` |  | Output in JSON format when supported |
| `--quiet` | `-q` | Suppress non-essential output |
| `--template` | `-t` | Format output using Go template (requires --json or --format=json) |
| `--yaml` |  | Output in YAML format when supported |

### Examples

```bash
jk job scan platform/services/auth-relay
```

## jk job view

View job details

### Usage

```
jk job view <jobPath> [flags]
```

### Inherited Flags

| Flag | Short | Description |
|---|---|---|
| `--context` | `-c` | Active Jenkins context name (or set JK_CONTEXT env var) |
| `--format` |  | Output format: json, yaml |
| `--jq` |  | Filter JSON output using jq expression (requires --json or --format=json) |
| `--json` |  | Output in JSON format when supported |
| `--quiet` | `-q` | Suppress non-essential output |
| `--template` | `-t` | Format output using Go template (requires --json or --format=json) |
| `--yaml` |  | Output in YAML format when supported |
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall