Global Parameter usage in Command Line

Creating parameters

  1. Login to https://portal.opsera.io -> Tool Registry -> Click Parameter tab-> Click on +New Parameter

 

  • Give values and click the Create button. Values will be stored in the vault if the “Secured in Vault button” is enabled with toggle. This value cannot be changed upon creation.

  • Same procedure can be followed for creating parameters with hardcoded values just by disabling the “Secured in Vault” button.

 

Creating pipeline with Command Line step and adding the parameters

  1. Create a pipeline with command line step and add parameters required for passing it to the command line step.

2. Click Settings icon from the command line step

3. Enter required filed values until Parameter Selection field

4. From the “Select Parameters” drop down - select the required parameters(15 max) which was added previously in Parameters and Save

5. Upon running the pipeline - the echo’ed values are displayed in console log