Creating an Artifact in CDA from a Pipeline in Jenkins
- Go to the main page and create a new pipeline (New Item > Pipeline) or use an existing one.
- Open the Pipeline Syntax.
- In the Sample Step field, select the addArtifact: CDA Add Artifact step from the dropdown list.
- Do one of the following:
- Select the Use Centralized CDA Connection Parameters checkbox to authenticate with the centralized connection details . See: Configuring CDA Centralized Connection Details).
- Enter the connection details:
Server
Example:
http://192.000.000.00/cda
Full Username
Examples:
- 1000/USER/DEP
- AUTOMIC/1000/USER/DEP
Password
- Click Test connection to ensure that the connection succeeds.
- Enter the name of the artifact source from which the artifact should be retrieved.
- Note:This value can also contain variables (for example: Build environment variable). Variables must start with $. For example:
$Artifact_source
- Enter an Artifact name in the Name field. Variables can be used.
Note: The variable name must start with the $ character. For example:
test-job$BUILD_ID
-
Enter the name of the artifact folder in the Folder field. Variables can be used.
Notes:
-
This is the name of the artifact folder in which the artifact will be created. If not provided, the artifact folder of the specified artifact source will be used
-
The variable name must start with the $ character. For example:
test-job$BUILD_ID
-
-
Provide artifact properties in correct key value pairs as JSON format.
Note:This value can also contain variables (for example: Build environment variable). Variables must start with $. For example:
{ "source_path":"$src_path", "checksum_path": "$chksum_path" }
- Select one of the supported archive types from the dropdown list.
- (Optional) To associate the artifact to a certain Component, provide one or more Application and Component pairs separated by a comma. For example, SampleApp:ComponentA.
Note:This value can also contain variables. Variables must start with $. For example:
$application:$component
- Click Generate Pipeline Script to generate the script to be used for creating a new Artifact in CDA.
- Copy the generated content.
- Click Back at the top left and select Configure.
- Click the Pipeline tab, select the Pipeline script as the definition, and paste the copied content to the Script field.
- Save your changes.