docs: update CLAUDE.md with config file usage

This commit is contained in:
2026-03-18 14:02:47 +08:00
parent ddc175edc3
commit f1a75cab8c

View File

@@ -33,4 +33,23 @@ uv run pytest
## Configuration
Credentials can be passed via command-line options (`-u/--url`, `-U/--username`, `-P/--password`) or environment variables (`JENKINS_URL`, `JENKINS_USERNAME`, `JENKINS_PASSWORD` or `JENKINS_TOKEN`).
Credentials are read from `~/.config/zzpyjenkins/config.toml`. Create this file with your Jenkins server configurations:
```toml
[work]
url = "https://jenkins.work.com"
username = "myuser"
password = "mypassword"
[home]
url = "http://localhost:8080"
username = "admin"
password = "admin123"
```
Use `-s/--server` option to select which server to use:
```bash
zzpyjenkins -s work info
zzpyjenkins --server home list
```