GCP Integration


GCP is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates. GCP automates the build, test, and deploy phases of your release process every time there is a code change, based on the release model you define. CloudQA's automated tests can be invoked in GCP.

Below is the Procedure

  • Create a build Trigger in GCP with Name as Trigger-CloudQA-Tests
  • Region(user choice)
  • Event (Select the event on which you want to trigger the CloudQA tests)
  • Source (Select the Repository to build when the trigger is invoked)
  • Select the Configuration type as "Cloud Build configuration file (yaml or json)"
  • Select Location as "Inline" and paste the following in the yaml editor

steps:

  - name: ubuntu
    env:
      - 'CLOUDQA_API_KEY=${_CLOUDQA_API_KEY}'
      - 'CLOUDQA_SUITE_ID=${_CLOUDQA_SUITE_ID}'
      - 'CLOUDQA_BROWSER=${_CLOUDQA_BROWSER}'
      - 'CLOUDQA_VARIABLES=${_CLOUDQA_VARIABLES}'
      - 'CLOUDQA_BUILD_TAG=${_CLOUDQA_BUILD_TAG}'
      - 'CLOUDQA_BASE_URL=${_CLOUDQA_BASE_URL}'
      - 'CLOUDQA_SEQUENTIAL_EXECUTION=${_CLOUDQA_SEQUENTIAL_EXECUTION}'
    script: >
      echo "hello world"

      apt-get update -qqy && apt-get install curl -qqy && apt-get install jq
      -qqy

      curl -O https://doc.cloudqa.io/files/cloudqa-bash.sh

      API_KEY = ${_CLOUDQA_API_KEY}

      echo ${_CLOUDQA_API_KEY}

      echo API_KEY

      bash cloudqa-bash.sh
options:
  substitutionOption: ALLOW_LOOSE
# default values for variables
substitutions:
  _CLOUDQA_SUITE_ID: '<TestSuite Id>'
  _CLOUDQA_BROWSER: 'Chrome'
  _CLOUDQA_API_KEY: '<API key>'
  _CLOUDQA_VARIABLES: 'var1=val1,var2=val2'
  _CLOUDQA_BUILD_TAG: '<BUILD ID>'
  _CLOUDQA_BASE_URL: '<Application Start URL>'
  _CLOUDQA_SEQUENTIAL_EXECUTION:'false'
  • Click Save

results matching ""

    No results matching ""