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:
  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. 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. You can create multiple CDA artifacts by clicking Create another CDA Artifact as many times as needed.
  13. Click Save.