Creating an Artifact in CDA from a Pipeline in Jenkins

  1. Go to the main page and create a new pipeline (New Item > Pipeline) or use an existing one.
  2. Open the Pipeline Syntax.
  3. In the Sample Step field, select the addArtifact: CDA Add Artifact step from the dropdown list.
  4. 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

  5. Click Test connection to ensure that the connection succeeds.
  6. 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
  7. 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

  8. 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

  9. 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" }

  10. Select one of the supported archive types from the dropdown list.
  11. (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

  12. Click Generate Pipeline Script to generate the script to be used for creating a new Artifact in CDA.
  13. Copy the generated content.
  14. Click Back at the top left and select Configure.
  15. Click the Pipeline tab, select the Pipeline script as the definition, and paste the copied content to the Script field.
  16. Save your changes.