Run Oracle PaaS Service Manager Commands Using PSMcli

Using Oracle PaaS Service Manager command line interface (PSMcli) commands, you can create and manage the lifecycle of various services in Oracle Public Cloud. You can create or remove service instances when a build runs.

For more information about PSMcli and its commands, see About the PaaS Service Manager Command Line Interface in PaaS Service Manager Command Line Interface Reference.

Set Up a VM Build Executor and a Build Executor Template with PSMcli

Before you can create a build step that uses PSMcli commands, your organization administrator must create a build executor template that includes the PSMcli software and add a VM build executor that uses that build executor template. The build executor template can be created from scratch or software can be added to an existing build executor template.

Note:

To find your organization administrator, click Contacts under your user profile. Your administrator, or a list of administrators, will display.

See Create and Manage Build Executor Templates in Administering Visual Builder Studio.

After the organization administrator adds a VM build executor to the build executor template, you can create and configure a job to use that build executor template and add PSMcli commands.

Configure a Job to Run PSMcli Commands

Here's how you create and configure a job that runs PSMcli commands:

  1. Open the job’s configuration page.
    If you're creating a job, in Template in the New Job dialog, select the PSMcli build executor template. Jump to step 5.
  2. Click Settings the Gear icon.
  3. In the Software tab, select the PSMcli build executor template.
  4. Click Configure Configure.
  5. In the Git tab, add the Git repository where you uploaded the script file.
  6. Click the Steps tab.
  7. From Add Step, select PSMcli.
  8. In Username and Password, enter the user name and password of the Oracle Cloud account.
  9. In Identity Domain, enter the identity domain.
  10. In Region, select your identity domain’s region.
  11. In Output Format, select the preferred output format: JSON (default) or HTML.
  12. Scroll up and from Steps, select Unix Shell.
  13. In Script, enter the PSM commands on separate lines.
  14. Click Save.

You can add multiple shell steps to run different group of commands. Don’t add the PSMcli build step again.