Summary
Retrieves parameters for the given CI job.Refer to this list for the types of parameters:
Type | Description |
---|---|
Boolean |
Defines a simple boolean parameter, which you can use during a build, either as an environment variable, or through variable substitution in some other parts of the configuration. The string value is |
Choice |
Defines a simple string parameter, which can be selected from a list. You can use it during a build, either as an environment variable, or through variable substitution in some other parts of the configuration. |
Credentials |
Defines a credentials parameter, which you can use during a build. For security reasons, the credential is not directly exposed, but rather, the ID of the credential is exposed. However, the selected credential is available through variable substitution in some other parts of the configuration. The string value is the ID of the credential. A supporting plugin can thus use the ID to retrieve the selected credential and expose it to the build in an appropriate way. |
File |
Accepts a file submission from a browser as a build parameter. The uploaded file is placed at the specified location in the workspace, which your build can then access and use. This is useful for many situations, such as:
The name of the submitted file is available in the environment variable whose name is the same as file location. For example, if you set the file location to be File upload is optional. If a user chooses not to upload anything, Jenkins simply skips this parameter and does not place anything. But, it also does not delete anything that’s already in the workspace. From the CLI, the |
Subversion tag list |
Displays a field at build-time for the user to select a Subversion tag from which to create the working copy for this project. Once the two fields
For instance, if Notice that you can set the |
Multi-line string |
Displays a text area. |
Password |
Passes a password to your build. The password entered here is made available to the build in plain text as an environment variable like a string parameter would be. The value is stored encrypted on the Jenkins master, similar to passwords in Jenkins configuration. |
Run |
Defines a run parameter, where users can pick a single run of a certain project. The absolute URL of this run is exposed as an environment variable, or through variable substitution in some other parts of the configuration. In the build this can be used to query Jenkins for further information. |
String |
Defines a simple text parameter, where users can enter a string value, which you can use during a build, either as an environment variable, or through variable substitution in some other parts of the configuration. |
ciConfigurationNameStringrequiredThe CI configuration name. ciJobNameStringrequiredName of the CI job. ciControllerDomainStringoptionalThe domain name of the CI controller. ciEndpointStringoptionalEndpoint of the CI Controller. ciJobBranchNameStringoptionalName of the CI Job Branch. folderStringoptionalThe path to the folder on the CI server referenced by the CI configuration that contains the CI jobs. The folder path must be in format of: folder1/folder2/folder3/... |
Usage
Perl
$cmdr->getCIJobParameters( "test-ciConfigurationName", # ciConfigurationName "test-ciJobName" # ciJobName # optionals );
ectool
ectool getCIJobParameters \ "test-ciConfigurationName" `# ciConfigurationName` \ "test-ciJobName" `# ciJobName` \ # optionals