# Scheduling a pipeline and/or a release run

Imagine you want to trigger a release or a pipeline in frequent intervals say every hour, every day at a particular hour, or at a particular day in a week, Instead of going and doing it manually, users can create a Schedule for the particular use case they want according to their requirements for a release or a pipeline.

### **Steps to create a schedule for a release** <a href="#steps-to-create-a-schedule-for-a-release" id="steps-to-create-a-schedule-for-a-release"></a>

**Pre-requisites:**

* An Active cluster
* A Release created from Release Templates

**Steps:**

1. Once you log in to Ozone, select **Triggers** on the left-side bar.\ <br>

2.

```
<figure><img src="/files/MiD9zSenBwT0qqWAkp29" alt=""><figcaption></figcaption></figure>
```

3. After clicking on triggers a modal appears to select between **Schedules** and **Webhooks**\
   Click on **Schedules** to get the schedules page
4.

```
<figure><img src="/files/VEppmevxDwpaaV6ONiXt" alt=""><figcaption></figcaption></figure>
```

5. After this users can click on the **Create Schedule** button to open the modal window for schedule creation
6.

```
<figure><img src="/files/dhqe2CdLMitn4hiXHC1p" alt=""><figcaption></figcaption></figure>
```

7. This will open the modal window for **schedule creation**
8.

```
<figure><img src="/files/by4vM286l0ScEHBeAzw2" alt=""><figcaption></figcaption></figure>
```

9. Users are provided options to select the frequency,\
   **Hourly -** The release/pipeline will be triggered every hour, you need to enter the **minutes** on when to trigger the release/pipeline\ <br>

   &#x20;

   **Daily -** Release/Pipeline will be triggered daily, you just need to enter the **hours** and **minutes** when they want to trigger the Release and Pipeline\ <br>

   **Weekly -** You can select the day of the week and the time on that particular day when they want to trigger the Release or Pipeline. You need to select the **day** and enter the **hours** and **minutes**\ <br>

   Open image-20240416-090835.png![image-20240416-090835.png](blob:https://ozonecloud.atlassian.net/097f12bc-2fc7-47a3-89cf-2d432ed82fd2#media-blob-url=true\&id=e58c93a1-c499-4fef-8ab3-a6812d70b403\&collection=contentId-2092007580\&contextId=2092007580\&width=1800\&height=1017\&alt=image-20240416-090835.png)

   &#x20;
10.

```
<figure><img src="/files/1BxhkHGzvoZ6tBDVLHC8" alt=""><figcaption></figcaption></figure>
```

11. Once the frequency is selected you can select the Resource type as Release\ <br>

    Open image-20240416-091042.png![image-20240416-091042.png](blob:https://ozonecloud.atlassian.net/93805c46-4630-4f77-8bb7-1617fc849faa#media-blob-url=true\&id=ec4829fc-da6b-46bd-b6c5-29b9faf79c1d\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091042.png\&size=266596\&width=1800\&height=1017\&alt=image-20240416-091042.png)

    &#x20;
12. After selecting the Resource type as Release, an option will be provided to **select the release template** to choose the release template as desired. After all the details are entered and the release is selected, users can click on **map parameters** to move to the second step of schedule creation\ <br>

    Open image-20240416-091435.png![image-20240416-091435.png](blob:https://ozonecloud.atlassian.net/8ce3d1f5-5d10-449c-aab4-7f466c463d1b#media-blob-url=true\&id=c36d4889-60d0-4158-a5e3-804fd5e5ca44\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091435.png\&size=267609\&width=1800\&height=1017\&alt=image-20240416-091435.png)

    &#x20;
13. Once all the details are entered, users can click on **Save** to create the schedule.\ <br>

    Open image-20240416-091532.png![image-20240416-091532.png](blob:https://ozonecloud.atlassian.net/08e8dca3-10aa-4cf9-9956-69695b0f233d#media-blob-url=true\&id=2aa25558-4232-4a88-afed-d654fd6ed0c0\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091532.png\&size=237919\&width=1800\&height=1017\&alt=image-20240416-091532.png)

    &#x20;
14. Once the Schedule has been successfully created it will be shown in the form of a tabular list, in the below way. In the table list view, you can see that the **next run** is visible and when next will the release will be triggered.\ <br>

    Open image-20240416-091616.png![image-20240416-091616.png](blob:https://ozonecloud.atlassian.net/42e9f5a2-78d5-4374-a792-0a685e3368ed#media-blob-url=true\&id=c2254f6b-6a6b-4269-8a23-00e129c794b3\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091616.png\&size=170200\&width=1800\&height=1017\&alt=image-20240416-091616.png)

    &#x20;

    \
    Users can click on the **edit button**, to edit the schedules\
    Users can click on the **toggle button,** to enable/disable schedules\
    Users can click on the **delete button**, to delete the schedules.

&#x20;

### **Steps to create a schedule for a pipeline** <a href="#steps-to-create-a-schedule-for-a-pipeline" id="steps-to-create-a-schedule-for-a-pipeline"></a>

**Pre-requisites:**

* An Active cluster
* Microservice
* Select the same environment in which the cluster has been created

**Steps:**

1. Follow the same steps as **schedule creation for release**, i.e. from step 1 - to step 6
2. Once this is done, select the resource type as **pipeline**\ <br>

   Open image-20240416-091715.png![image-20240416-091715.png](blob:https://ozonecloud.atlassian.net/0e639241-35ba-4119-bb8c-18bf167649cf#media-blob-url=true\&id=cb8e3f7e-e2b3-42ac-9e57-2dc988755731\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091715.png\&size=261667\&width=1800\&height=1017\&alt=image-20240416-091715.png)

   &#x20;
3. Now select the details for the following-\
   \- Select the pipeline name, i.e. the pipeline that needs to be triggered\
   \- Next, select the environment, the environment should be the same in which the cluster has been created\
   \- Select the microservice\
   \- Select the cluster\
   Once all these details are entered click on the **map parameters** to move to the next step\ <br>

   Open image-20240416-091808.png![image-20240416-091808.png](blob:https://ozonecloud.atlassian.net/ce3744f0-7a3f-4abd-a929-187390e141fc#media-blob-url=true\&id=3b7188dc-a59d-4dcd-892c-a7a19b248c1e\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091808.png\&size=269185\&width=1800\&height=1017\&alt=image-20240416-091808.png)

   &#x20;
4. The next step is to map parameters for the particular pipeline and enter the details as requested in the input run parameters. Once all the details have been entered, click on Save to create the schedule.\
   \
   The schedule created will be shown in the table list view as it was shown above while creating a release schedule.\ <br>

   Open image-20240416-091842.png![image-20240416-091842.png](blob:https://ozonecloud.atlassian.net/3affbdf1-59b8-4ff6-afdc-becebd3bcd86#media-blob-url=true\&id=67be0f63-5be4-45ad-a93a-91df4bdcf9b1\&collection=contentId-2092007580\&contextId=2092007580\&mimeType=image%2Fpng\&name=image-20240416-091842.png\&size=243847\&width=1800\&height=1017\&alt=image-20240416-091842.png)

   &#x20;

   \ <br>

&#x20;

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ozone.one/ozone-end-user-guide/documentation/ci-cd/triggers/scheduling-a-pipeline-and-or-a-release-run.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
