An artifact repository specification is a template for an artifact repository instance.

About this task

An artifact repository specification defines properties to access an artifact repository instance and identify the artifacts it contains. The specification contains an action script that uses the property values to resolve the artifact repository instance and the artifact during deployment.

Prerequisites

  • Log in to Application Services as an application architect or an application catalog administrator.

  • Verify that you are a member of the appropriate business group.

  • Familiarize yourself with the basic concepts of defining and configuring component properties and actions. See Developing Application Services Components.

Procedure

  1. On the Application Services title bar, click the drop-down menu and select Library > Artifact Repositories.
  2. Click the Add icon (Add).
  3. Enter a name and description for the artifact repository specification.
  4. Enter a tracking identifier to identify the physical artifact in the repository.

    Use a unique string to serve as a builld ID, job ID, commit ID, version number, or other identifier. The system uses this identifier to locate different versions of the same artifact in the same repository. You can use this identifier in action scripts.

  5. Select a business group from the Business Group drop-down menu.

    Only business group users can access the artifact repository instances created from this specification.

  6. Add a repository access property.

    A repository access property specifies the server URL and any other information required to locate an artifact repository instance.

    1. Click the Add icon (Add) for Repository Access Properties.

      You can use an empty row in the Repository Access Properties list instead, if available.

    2. Enter a property name in the Property Name text box.
    3. (Optional) : Enter a description in the Description text box.
    4. Select a property type from the Type drop-down menu.

      Type

      Description

      String

      Specifies unique identifier for repositories created from this specification. Accepts a maximum of 1024 alphanumeric characters.

      Integer

      Specifies single integer with positive or negative value.

      Content

      Specifies URL of object to be downloaded as an artifact by scripts.

      Array

      Specifies an array in the form "value1","value2", ....

      Computed

      Specifies computed value to be provided by scripts

      Boolean

      Specifies YES or NO.

      Double

      Specifies a double integer.

      Single Select

      Defines a single select statement.

    5. (Optional) : Enter a property value in the Value text box.

      Enter a value here only if you want to use the same value for every artifact repository instance created from the specification.

    6. (Optional) : Select the Secured check box.

      When selected, hides the value of the property by masking the characters.

  7. Add an artifact identifier property.
    1. Click the Add icon (Add) for Artifact Identifier Properties.

      You can use an empty row in the Artifact Identifier Properties list instead, if available.

    2. Enter a property name in the Property Name text box.
    3. (Optional) : Enter a description in the Description text box.
    4. Select a property type from the Type drop-down menu.

      Type

      Description

      String

      Specifies unique identifier for repositories created from this specification. Accepts a maximum of 1024 alphanumeric characters.

      Integer

      Specifies single integer with positive or negative value.

      Content

      Specifies URL of object to be downloaded as an artifact by scripts.

      Array

      Specifies an array in the form "value1","value2", ....

      Computed

      Specifies computed value to be provided by scripts

      Boolean

      Specifies YES or NO.

      Double

      Specifies a double integer.

      Single Select

      Defines a single select statement.

    5. (Optional) : Enter a property value in the Value text box.

      Enter a value here only if you want to use the same value for every artifact in an artifact repository instance.

    6. (Optional) : Select the Secured check box.

      When selected, hides the value of the property by masking the characters.

  8. Create a script to resolve the location of an artifact.
    1. Select the script type from the Script Type drop-down menu for the RESOLVE_ARTIFACT script.
    2. Click in the Script text box to edit the script.
    3. Enter the script text in the edit window.

      You can change the script type or select a property to insert with the drop-down menus located at the top of the edit window.

    4. Click OK to close the edit window and save the script.

      The script text appears in the Script text box.

  9. Click Save to save your changes when finished.

What to do next

Create an Artifact Repository Instance.