Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Domain name field allows you to define a domain from which to create your sandbox in CloudShell. If this field is not populated, the domain defined in the Configuration step is used.

...

  • startSandbox – Initiates a new sandbox in CloudShell and waits for the sandbox to complete its Setup process. The method returns the sandbox Id.
  • stopSandbox – Stops an active sandbox, waits for the teardown process to end and checks the sandbox’s Activity Feed for errors.

To create a sandbox in CloudShell from a domain other than the one defined in the Configuration step:

  1. To start the sandbox, add the following script in the Pipeline section, replacing [domain name] with the name of your domain:
    Image Added
  2. Save and run the build. 
  3. To stop the sandbox, add the following script in the Pipeline section, replacing [domain name] with the name of your domain:

    node {

    stage ('Performance Testing'){

    Id = startSandbox duration: X, name: ‘[blueprint name]', sandboxDomain: ‘[domain name]’, sandboxName: '[sandbox name], timeout: Y

    stopSandbox '[sandbox ID]’

    }

    }

  4. Save and run the build. 

   

Here is an example of how to use the pipeline syntax to execute a Python test that requires the use of a sandbox that is based on a “Performance” blueprint:

...