Creating an Artifact in CDA from a Post-build Action in Jenkins
- Go to the main page and create a new build job (New Item) or use an existing one.
- If you are creating a new build job, enter the necessary information in the General, Source Code Management, Build Triggers, and Build sections.
- At the bottom of the page, click the Add post-build action button in the Post-build Actions section.
- Select the Add Artifact in Continuous Delivery Automation option 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
- You can create multiple CDA artifacts by clicking Create another CDA Artifact as many times as needed.
- Click Save.