jenkins_create_credential
Create a new credential in Jenkins by specifying its type—userpass, secret, or SSH key—along with the required fields and domain, enabling secure authentication storage for jobs and pipelines.
Instructions
Create a new credential in Jenkins.
Args: credential_id: Unique ID for the credential credential_type: Type — 'userpass' (username/password), 'secret' (secret text), 'ssh' (SSH key) username: Username (for 'userpass' type) password: Password (for 'userpass' type) or private key (for 'ssh' type) secret: Secret text (for 'secret' type) description: Description of the credential domain: Credential domain ('_' = global) store: Credential store ('system' = system store) session_name: Jenkins session to use
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | system | |
| domain | No | _ | |
| secret | No | ||
| password | No | ||
| username | No | ||
| description | No | ||
| session_name | No | default | |
| credential_id | Yes | ||
| credential_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |