Skip to main content Skip to complementary content

Creating contexts for your different environments

For your Job to be usable in differents situations, you will create two distincts contexts.

Talend Studio allows you to create a set of variables that you can regroup in a context. In this example, you will create a context called Development and another one called Production. Each of these contexts will contain the variables to be used for the tDataprepRun configuration, according to the target environment.

Procedure

  1. Click the Context view of your Job.
  2. Click the + button on the top right of the variables table to create a new context.
  3. Select the Default context and click Edit... to rename it Development.
  4. Click New... to create a new context called Production.
  5. Click the + button on the bottom left of the variables table to create a new variable called parameter_URL.

    The parameter_ prefix is mandatory, in order for the variable to be retrievable in Talend Management Console, if you use the Cloud version of Talend Data Preparation.

  6. On the newly created URL line, enter the URLs of your development and production instances of Talend Data Preparation in the corresponding columns.
  7. Repeat the last two steps in order to create the parameter_USERNAME and parameter_PASSWORD variables, that will store your Talend Data Preparation credentials depending on the environment.
    If Multi Factor Authentication is activated, use your authentication token instead of your password when creating the parameter_PASSWORD variable.

Results

These two different contexts will be available at execution time, when deploying your Job.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!