Loading

Sorry

Your web browser doesn't support some required capabilities.

This interactive simulation works best with the latest version of Chrome, Firefox, or Safari.

Sorry

An error occurred. Please reload the page or report this error to:
hol-feedback@vmware.com

Sorry

Sorry

Unable to initialize the simulation player:

Please reload the page or report this error to:
hol-feedback@vmware.com

X
↩ Return to the lab
HOL-1921-04-CMP: Advanced Pipelining with vRealize Code Stream

This is an interactive demo

Drive it with your mouse, your finger, or just use the arrow keys.

Use Learn mode to learn the demo. The orange boxes show where to click.

Use Present mode to hide the orange boxes and notes.

Click a Shortcut to jump to a specific part of the demo.

X
Hide notes
Restore notes
Open notes window
Increase font size
Decrease font size

This part of the lab is presented as a Hands-on Labs Interactive Simulation. This will allow you to experience steps which are too time-consuming or resource intensive to do live in the lab environment. In this simulation, you can use the software interface as if you are interacting with a live environment.

The orange boxes show where to click, and the left and right arrow keys can also be used to move through the simulation in either direction.

In this simulation, a vRealize Code Stream pipeline with enhanced functionality will be used to serve multiple purposes:  first, the pipeline will be executed to institute an emergency fix, and second, the same pipeline will be executed in order to enable new functionality.

View the vRealize Code Stream Pipeline

  1. Click the Edit button to open the pipeline
    • This pipeline makes use of several properties.  Used correctly, these properties will alter the execution of the pipeline as needed.
  2. Click on the FEATURE_CHECK property
    • This property will be used to enable new features in the MyCommerce.com application.
  3. Click on the EMERGENCY_RELEASE property
    • This property will be used in the event that an immediate fix is required for the MyCommerce.com application.
  4. Click the Stages button to view the pipeline tasks and stages
  5. Click the gear icon in the Resolve Artifact task
  6. Click Configure to open the task
  7. Click on the scrollbar to scroll down
    • This task searches an Artifactory repository for a certified artifact.  The integration with Artifactory allows for code artifacts certified for release to be accessed by the pipeline.
  8. Click Cancel to close the task
  9. Click the gear icon next to the “Install Website to Staging” task in the Staging stage
  10. Click Configure to open the task
    • This task demonstrates an example of conditional execution.  The task will only execute when the EMERGENCY_RELEASE pipeline parameter is set to "false" (the default value.)
  11. Click Cancel to close the task
  12. Click the gear icon in the Create ServiceNow Change task
  13. Click Configure to open the task
    • As with the Install Website to Staging task, this task will only execute based on pipeline parameters.  In this case, the FEATURE_CHECK parameter must be set to something other than the default value in order for this task to be executed.
  14. Click the scrollbar to scroll down
    • This task is an example of integration with an external system via REST API.  This task will create a new incident in ServiceNow, in order to create a record of feature enablement.
  15. Click Cancel to close the task
  16. Click the gear icon in the Resume Upon Approval task
  17. Click Configure to open the task
    • As with the Create ServiceNow Change task, this task will only execute if the FEATURE_CHECK pipeline parameter is set to a value other than the default.
  18. Click the scrollbar again to view the exit criteria
    • This task will poll a given URL over a specified interval and for a specific timeframe.  The task will complete either when the timeout period is met, or when one of the listed values in the Exit Criteria section are met.  In this case, a ServiceNow incident status of 6 (Resolved) will cause this task to complete successfully.
  19. Click Cancel to close the task
  20. Click the scrollbar in the Production stage to view additional tasks
  21. Click the gear icon in the Enable Site Feature task
  22. Click Configure to open the task
    • This task will only execute if the Resume Upon Approval polling task earlier in the stage completes succesfully.
  23. Click the scrollbar to view the rest of the task
    • This task makes use of a defined script within vRealize Code Stream.  The script will be executed on the production server, and used to enable specific features when the FEATURE_CHECK pipeline parameter is in use.
  24. Click Cancel to close the task

Execute the Pipeline to Institute an Emergency Fix

  1. Click the MyCommerce.com browser tab to view the current production site
    • A new build was mistakenly released to production with a mistake that was not detected by the Selenium test.  The test parameters have been adjusted and a new build is available with the fix in place, but this fix must be deployed to production as quickly as possible.  We will make use of the EMERGENCY_RELEASE parameter to execute the pipeline and skip deployment of the site to the staging environment in order to save time.
  2. Click the vRealize Automation tab to return to the Code Stream pipeline
  3. Click Close to close the pipeline
  4. Click Execute to begin pipeline execution
  5. Click on the EMERGENCY_RELEASE parameter
  6. Click on the default value of false to edit it
  7. Enter true and press Enter to change the value
  8. Click OK to execute the pipeline
  9. Click the Pipeline Executions tab to view the pipeline execution in progress
  10. Click the arrow icon to the left of the pipeline execution entry to expand the task in progress
  11. Click Enable Auto-refresh to automatically refresh the pipeline execution
    • Note that the Provision Machine and Resolve Artifact tasks execute simultaneously.
    • Additionally, the pipeline execution skips the “Install Website to Staging” task due to the EMERGENCY_RELEASE parameter being set to true.
  12. Click Disable Auto-refresh
  13. Click the MyCommerce.com tab to view the site in the browser
  14. Click Refresh to refresh the site
    • The site background color is now correct.

Execute the Pipeline to Enable a New Feature

  1. Click the vRealize Automation tab to return to vRealize Code Stream
  2. Click the arrow next to the pipeline execution to minimize it
  3. Click Pipelines to return to the list of pipelines
  4. Click Execute to begin the pipeline execution again
    • With the emergency fix applied successfully, the Rainpole development team is now prepared to enable new functionality on the MyCommerce.com site.  Specifically, in addition to current product offerings, Rainpole will now also be selling shoes and similar goods.  The new content is already available and tested, so a new build is not required.  However, new feature functionality must be validated in person by Rainpole's IT Service Management team through a ServiceNow incident record.  By using the FEATURE_CHECK pipeline parameter, we will enable to the new site feature and create the necessary records.
  5. Click the FEATURE_CHECK parameter to edit the default value
  6. Click on the NA default value to edit it
  7. Enter ENABLE_SHOE_SKU and press Enter
  8. Click OK
  9. Click Pipeline Executions
  10. Click the arrow icon to the left of the pipeline execution entry to expand the task in progress
  11. Click Enable Auto-refresh to automatically refresh the pipeline execution
    • Note that the Install Website to Staging task executes normally since the EMERGENCY_RELEASE parameter was not changed
  12. Click the Incidents tab to open ServiceNow
  13. Click the Run button
  14. Click the link to open the incident created by the REST task
  15. Click the State select box to open it
  16. Click Resolved to change the state of this incident
  17. Click Resolve to update the incident
  18. Click the vRealize Automation browser tab to return to the Code Stream pipeline execution in progress
  19. Click the scrollbar to scroll down
    • Note the successful execution of the Enable Site Feature task, since the Resume Upon Approval poll task completed successfully.
  20. Click the MyCommerce.com browser tab to open the site
  21. Click Refresh to reload the site
    • With the pipeline execution complete, the new site functionality has been enabled and new items are available on MyCommerce.com for purchase.

To return to the lab, click the link in the top right corner or close this browser tab.

Copyright © 2018 VMware, Inc. All rights reserved.