CloudBees CD/RO Groovy API commands / Credential

Credential

Username/password credential supplied by a user at runtime. The credential is used by the job and then discarded when the job completes.
credentialName
Stringrequired
userName
Stringoptional
password
Stringoptional

Usage

Groovy

import com.electriccloud.client.groovy.models.Credential def arg = new Credential( credentialName: "credentialName-value" /* optional arguments */ )