Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
indent1px
absoluteUrltrue
stylecircle
excludeOverview

Create your Plugin

...

Plugins are Docker containers that perform pre-defined tasks and . These tasks are configured executed as steps in your HCP pipeline. You can use Plugins can be used to deploy code, publish artifacts, send notificationnotifications, and moreetcetera.
To Follow these steps to create a pluginPlugin:

  1. Login to the HyperCloud™ Platform(HCP) with your credentials.

  2. Click on Services Orchestration  > Click Appstore > Click on Log in to your HCP portal account.

  3. Click Service Orchestration and navigate to Appstore > Plugins > Click on New > Select plugin type e.g. Shell.

    Enter the following details for your new shell script plugin:

    Enter the name.

  4. Click on the +Advance Configuration

  5. Enter the

    the Plugin Type from the drop-down list.

  6. Enter these details in your Script Plugin dialog:

    1. Provide a Name for your plugin.

    2. Click +Advance Configuration and enter these details:

      1. Enter a plugin Version.

      2. Enter a brief description for of your new shell script pluginScript Plugin.

      3. Select the License from the drop-down list.

      4. Enter the Timeout In the scripts text box enter the command as  for your plugin in seconds.

      5. Enter the following in the Scripts text-box:
        #!/bin/bash
        To Use the script below to update your packages:

        Code Block
        languagebash
        echo "Updating OS packages"

        
        sudo apt-get update && sudo apt-get upgrade -y || yum update -y

         
        echo "Ping Test to Google DNS Server"

         
        ping $IP_ADDRESS -c 8|
      6. If you want to add conditions for your Script Plugin run:

        1. Click

        on
        1. Arguments+

        to enter the arguments for your shell script plugin.
        1. The arguments key is

        2. Enter the argument Key and its Value.
          Example:
          Key: IP_ADDRESS Value: 8.8.8.8

          To your entitled users are:

        3. To allow all users within the same tenant to access this Blueprint, Click on Everyone

        4. To allow all users in all tenants (current or future) to access this Blueprint, Click on All Tenants

        5. To allow specific users to access this blueprint, Click on Users & Groups

        6. In the users Text Box: Type the first alphabet of a username you would like to add & select the user

        7. In the Groups Text Box: Type the first alphabet of a group name you would like to add and select the group.

  7. Click Save Changes.

Note: HyperCloud will replace all occurrence of $IP_ADDRESS in the plugin with the value 8.8.8.8. However, HyperCloud will ignore ${IP_ADDRESS} if used in the plugins.

...