Step 1: Create a component
Prerequisite: Before you begin
This step explains how to create a component and import the first component version for the helloWorld deployment.
Note: Components represent deployable artifacts such as files, images, databases, configuration materials, or other items in a software project. A component can contain a single or multiple artifacts. Components have versions, which ensures that proper component instances are deployed. For details, see Managing Components.
To create a component for the helloWorld deployment:
- In Deployment Automation, navigate to Management > Components.
Click Create at the top right of the screen. The Create Component dialog box opens.
In the Name field, enter the component’s name, for example, helloWorld.
(Optional) In the Description field, enter additional information about the component.
In the Template field, accept the default value (None).
Templates enable you to reuse component configurations. For details, see Creating Component Templates.
From the Source Config Type list, select File System (Versioned). Additional fields are displayed.
File System (Versioned) treats each subdirectory in the source directory as a component version. For details, see File System (Versioned).
In this deployment, your component version is the TestVersion01 subdirectory, which contains the artifacts.
- In the Base Path field, specify the path to the source directory of your artifacts, for example, /helloWorld.
- Select the Import Versions Automatically check box to set up periodic imports. Additional fields are displayed.
Set Quiet Period to 60 and Polling Period to 300 to give time for adding new files between automatic imports.
With these settings, Deployment Automation will poll for new versions every 300 seconds. After detecting and importing changes, it will pause polling for 60 minutes.
Ensure the Copy to CodeStation check box is selected.
This option creates a copy of imported artifacts and stores them in an artifact repository called CodeStation.
Accept the default values for the remaining options. For details about these options, see Creating Components.
Check that the artifacts were imported. Navigate to Management > Components > helloWorld > Versions > TestVersion01. Verify that the five files, TestArtifact01.txt through TestArtifact05.txt, are present.