Creating an Artifact in CDA from a Post-build Action in Jenkins

  1. Go to the main page and create a new build job (New Item) or use an existing one.
  2. If you are creating a new build job, enter the necessary information in the General, Source Code Management, Build Triggers, and Build sections.
  3. At the bottom of the page, click the Add post-build action button in the Post-build Actions section.
  4. Select the Add Artifact in Continuous Delivery Automation option from the dropdown list.
  5. 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

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

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

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

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

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

  13. You can create multiple CDA artifacts by clicking Create another CDA Artifact as many times as needed.
  14. Click Save.