# Adding values to a context group and running a Job accordingly

You can use context groups to run Jobs according to different predetermined parameters. By taking the example of deployment environments, you can configure passwords or usernames following a Job execution on your production or staging environment.

## Before you begin

You must have created a context group (see [Creating a context group](https://help.qlik.com/talend/en-US/using-context-variables-talend-studio/8.0/Creating%20a%20context%20grouphttps://help.talend.com/en-US/using-context-variables-talend-studio/8.0/creating-a-context-group)).

## Procedure

1. In the Repository, expand Contexts, right-click a context group and click Edit context group.
2. Click Next.

   You are brought to Step 2 in the wizard.
3. Click Configure Contexts...

   ![](https://help.qlik.com/talend/en-US/using-context-variables-talend-studio/Resources/images/configure_contexts.png)
4. Click New...
5. Enter a context name.
   ### Example

   prod
6. Click OK.

   You are brought back to the Configure Contexts window.
7. Define your context parameters.
   ### Example

   Link your context to a database.
8. Optional: Select the Default context environment.
9. Click Finish.
10. In the Run view, select a Context.

    ![](https://help.qlik.com/talend/en-US/using-context-variables-talend-studio/Resources/images/context_run.gif)
11. Click Run.

## Results

You have configured a context group for your different deployment environments.