# Add services and pipelines

{% hint style="info" %}
This is an older version of the document. To view the most recent version of the document, click [here](https://docs.opsmx.com/products/opsmx-intelligent-software-delivery-platform/system-setup/applications/add-services/add-services-and-pipelines).
{% endhint %}

[Services and Pipelines](https://app.gitbook.com/s/-MBEa1hoX6SqpDj-ymNs/~/changes/2VgvOJ1WvEYWHqvike2b/opsmx-intelligent-software-delivery-platform/isd-architecture/opsmx-isd-setup/services-and-pipelines) After creating the main application, you need to add the components to the application. These components are know as services/micro services. A micro service is always associated with an application.&#x20;

To add services, follow the steps given below:

1. After clicking the Save and Next button, the following screen will appear:

![Create Service](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MNMdlVu8pBBAwSnHyOq%2F-MNMfOmkid3sBDZcVlGs%2Fimage.png?alt=media\&token=05c6df7f-c73f-4781-9713-c033fd1e870a)

Enter the Service Name in the text box and click Save. The following options screen will appear:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MWXP6TorA829JPQX57Y%2F-MWwUdMt04LDfBfm5NG7%2Fimage.png?alt=media\&token=5da54f04-6cb7-4c80-8e2d-1c1e7c2077a6)

In the above image, a pipeline test\_Service has been created along with the servic&#x65;*.* Click the test\_Service pipeline to make changes to the pipeline. Refer to the image below:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MWXP6TorA829JPQX57Y%2F-MWwWSiT_lVAj-Q6Vk6W%2Fimage.png?alt=media\&token=988a24f8-1e3e-4fcb-a0e0-6d52f71f0bce)

After clicking, the following options will appear:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MWXP6TorA829JPQX57Y%2F-MWwX9JyUdq-j613S1YL%2Fimage.png?alt=media\&token=960bfe20-02d0-4dc0-ac96-7efe32de3c32)

In the above screen, you can do the following:

* **Type :** Select the type of gate using the drop-down, the options are Approval and Verification. A gate is an access point which allows you to stop the pipeline to automatically go to the next stage. A gate helps you to manually intervene and verify or approve a stage of the pipeline before moving on to the next stage in sequence. The following are the options:

### **Type Verification**

If you select the gate type as verification, you can do the following:&#x20;

* Select or add a Log Template. To know more on log templates click [here](https://docs.opsmx.com/autopilot/analysis-setup/templates/log-template).
* Select or add a Metric Template. To know more on metric templates click [here](https://docs.opsmx.com/autopilot/analysis-setup/templates/metric-template).

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MU8Ejq4359Q2TzFWZlV%2F-MU8JnlfbOECnTSc2bY1%2Fimage.png?alt=media\&token=ba9ad748-239a-4f46-a3a1-d37ba048c2aa)

### **Type Approval**

If you select the gate type as approval, you can do the following:

* Select the connector from the drop-down. The available connectors are:
  * JIRA
  * GIT
  * AUTOPILOT
  * SONARQUBE
  * JENKINS
  * AQUAWAVE
  * APPSCAN
* Select the Account from the drop-down.
* Select the template from the drop-down.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MU8Ejq4359Q2TzFWZlV%2F-MU8L16ofJGdBLXZv5yG%2Fimage.png?alt=media\&token=df5a0b8d-1132-4af7-aa0d-aeb2c4d961d1)

### **Type Test Verification**

If you select the gate type as verification you can only add a log template as shown below:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MWXP6TorA829JPQX57Y%2F-MWwaBYZxhbGCallUj1t%2Fimage.png?alt=media\&token=fcf78dc5-565a-485d-8bee-1fe1f0e547ad)

### **Type Policy**

If you select the type as Policy you will be to select the Policy from the Policy Configuration field as shown below:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-M_V1UMWSeZRwivRUc2J%2F-M_V37LGQ_XLwYN-vmnJ%2Fimage.png?alt=media\&token=b8fc2b1d-07e5-4723-adc8-cd9d710608c5)

* After selecting the type there are some common fields which appears irrespective of the type selected. They are as follows:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MWXP6TorA829JPQX57Y%2F-MWwZvPvcz6I-IK7RsM5%2Fimage.png?alt=media\&token=1c4bf97a-16af-448b-83da-0001a5ec8163)

* **Environment :** Any gate is associated with an environment. An environment can be a testing environment, a staging environment or a production environment. Each environment are distinct and will have different credentials. Based on the environment the stages of a pipeline will vary. Click the drop-down and select Add Environment. Enter the name of the environment as shown below:

&#x20;&#x20;

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MU8Ejq4359Q2TzFWZlV%2F-MU8IPpzH8sZdOYuHbd7%2Fimage.png?alt=media\&token=cda5e034-e1c0-4cd9-9a85-54b7978d0206)

* **Gate Name :** Enter the name of the gate in the text box.
* Click Save to add the gate. You can add multiple gates to one service. Click the Add New Gate button as shown below:

&#x20;   &#x20;

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MU8Og9KhS2PCeyEHcIS%2F-MU8P1vHMxb0nfsFowrw%2Fimage.png?alt=media\&token=dc0de327-e6ee-4725-9e83-7d907bf6feda)

* When you are trying to add a second gate you can set the dependency of the new gate on a previous gate. To do so, select the previous gate from the Depends On drop-down as shown below:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MU8Og9KhS2PCeyEHcIS%2F-MU8PsYQIf0qiQgL8ihk%2Fimage.png?alt=media\&token=b3427a66-6213-4a50-93e9-0dbf04462b32)

* After adding multiple gates to a service the Pipeline View will appear as shown below:

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBEa1hoX6SqpDj-ymNs%2F-MU8Og9KhS2PCeyEHcIS%2F-MU8QFnL0NeOiLMCQvCR%2Fimage.png?alt=media\&token=d6e981dc-b699-4109-90f6-2941942e763c)
