Skip to content

Commit da07455

Browse files
committed
Docs for JSON-format username + password
1 parent 6f511dc commit da07455

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,24 @@ node {
167167
}
168168
```
169169

170+
### Username with Password (JSON format)
171+
172+
A *username* and *password* pair.
173+
174+
- Value: Valid JSON describing an object with a `username` field and and `password` field.
175+
- Tags:
176+
- `jenkins:credentials:type` = `jsonUsernamePassword`
177+
178+
#### Example
179+
180+
AWS CLI:
181+
182+
```bash
183+
aws secretsmanager create-secret --name 'artifactory' --secret-string '{ username: "joe", password: "supersecret" }' --tags 'Key=jenkins:credentials:type,Value=jsonUsernamePassword' --description 'Acme Corp Artifactory login'
184+
```
185+
186+
Declarative and Scripted Pipeline behavior is (exactly) the same as non-JSON-format Username and Password.
187+
170188
### SSH User Private Key
171189

172190
An SSH *private key*, with a *username*.

0 commit comments

Comments
 (0)