...
Table of Contents | ||||||||
---|---|---|---|---|---|---|---|---|
|
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:
Login to the HyperCloud™ Platform(HCP) with your credentials.
Click on Services Orchestration > Click Appstore > Click on Log in to your HCP portal account.
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.
Click on the +Advance Configuration
Enter the Enter these details in your Script Plugin dialog:
Provide a Name for your plugin.
Click +Advance Configuration and enter these details:
Enter a plugin Version.
Enter a brief description for of your new shell script pluginScript Plugin.
Select the License from the drop-down list.
Enter the Timeout In the scripts text box enter the command as for your plugin in seconds.
Enter the following in the Scripts text-box:
#!/bin/bash
To Use the script below to update your packages:Code Block language bash 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|
If you want to add conditions for your Script Plugin run:
Click
Arguments+
The arguments key is
Enter the argument Key and its Value.
Example:
Key:IP_ADDRESS
Value:8.8.8.8
To your entitled users are:
To allow all users within the same tenant to access this Blueprint, Click on Everyone
To allow all users in all tenants (current or future) to access this Blueprint, Click on All Tenants
To allow specific users to access this blueprint, Click on Users & Groups
In the users Text Box: Type the first alphabet of a username you would like to add & select the user
In the Groups Text Box: Type the first alphabet of a group name you would like to add and select the group.
the Plugin Type from the drop-down list.
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.
...