Setting up your Account ID on Travis CI - Cloud

Talend Cloud API Tester Examples

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend API Tester
Content
Design and Development > Testing APIs
Last publication date
2024-03-15

Set up and manage your Account ID securely.

Test scenario automation through Maven is a paying feature, so you need to enter your Talend Cloud Account ID. Your ID is private to you and should not be published on a GitHub repository. A simple way to securely manage your Account ID is to add it as an environment variable in Travis CI settings.

Procedure

  1. In your Travis CI project settings, go to the Environment Variables section, define a Name and enter your Account ID in the Value field, then click Add.
    The Account ID is defined in the Environment Variables section.
  2. Run the following script to pass the variable to Maven.
    script:
    - mvn test -Daccount_id=$ACCOUNT_ID
  3. Use this argument in your pom.xml configuration.
    <accountId>${account_id}</accountId>

    Another valid option would be to store it as an encrypted string in your .travis.yml file.

    Example

    You can find sample travis.yml and pom.xml files in the travis_ci.zip archive.