These commands fetch native CI jobs and, for jobs so configured, its parameters.
getCIJob
Gets the specified CI job.
Arguments | Descriptions |
---|---|
ciConfigurationName |
The name of the CI configuration for the server that contains Argument Type: String |
ciJobName |
The name of the CI job to retrieve. |
folder |
(Optional) Path to the folder on the CI server referenced by If not specified, the root level for |
getCIJobs
Gets CI jobs for the specified CI configuration.
Arguments | Descriptions |
---|---|
ciConfigurationName |
The name of the CI Configuration. Argument Type: String |
folder |
(Optional)Path to the folder on the CI server referenced by If not specified, the root level for |
jobSearchType |
(Optional) Specify job search type:
If not specified, Argument Type: String |
getCIJobParameters
Retrieve parameters for the given CloudBeesCI job. See This list for the types of parameters.
Arguments | Description |
---|---|
ciConfigurationName |
The name of the CI Configuration. Argument Type: String |
ciJobName |
The name of the CI Job as returned from the |
folder |
(Optional)Path to the folder on the CI server referenced by If not specified, the root level for |
Parameter types
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. |