You use the artifact parameters to map artifacts to a script task to enable the script to download artifacts from a repository to the host.


  • Verify that a script task is available in a release pipeline.

  • Verify that an artifact task is configured and the artifact output property is shared. See Add an Artifact Task.


  1. Open a terminal.
  2. Download artifacts within the script task.

    wget $artifactDownloadUrl

    The $artifactDownloadUrl script variable is mapped to the artifact.

  3. (Optional) Bypass the certificate check for a self-signed SSL certificate.
    • wget $artifactDownloadUrl --no-check-certificate

    • curl -O $artifactDownloadUrl --insecure

  4. Close the terminal.
  5. Open a release pipeline.
  6. Select the script task from the stage column.
  7. Click the Advanced tab.
  8. Type the artifact group variable.


    This variable is generated as part of the artifact output from the existing artifact task.

    An example of an artifact group variable, ${Dev.Artifact.ARTIFACT_OUTPUT}.

  9. Click Add to define the Artifact input parameters.



    Parameter Name

    Name of the Shell variable referring to an artifact in the script.

    An example parameter name is artifact_config.

    Parameter Value

    Artifact name defined in the artifact group.

    An example parameter value is CodeStream_JAR.

  10. Select Download URL or Repository URL from the drop-down menu.

    The script calls the download URL or the repository URL for an artifact by mapping an artifact input property.

  11. Click Add to define the Other input.



    Parameter Name

    Name of the other Shell variable defined in the script.

    An example parameter name is portNumber or buidID.

    Parameter Value

    Value for the Shell variable.

    An example parameter name is 800.

  12. Click Save.

Example Scripts for a Custom Script Task

The following example shows a script that configures a vRealize Automation application.

$ cat
echo "Configure app server";
echo "VCAC Application Download URL: $VCAC_APP_DOWNLOAD_URL";

echo "Configuring VCAC application";

echo "Starting application on port: $APLICATION_PORT";

MACHINE_IP = ifconfig | sed -En 's/;s/.*inet (addr:)?(([0-9]*\.)(3)[0-9]*).*/\2/p'

The script refers to the VCAC_APP_DOWNLOAD_URL environment variable to determine what version of the VCAC artifact to download from the repository. The artifact input parameter to the script should be the VCAC_APP_DOWNLOAD_URL parameter.

echo "Configuring VCAC application";

For the script to be able to share data with other release pipeline tasks, the contents must be written in a response file. The response file contents are stored in the script output variable.

MACHINE_IP = ifconfig | sed -En 's/;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
printf "Application URL: $MACHINE_IP/vcac/" > $SCRIPT_RESPONSE_FILE