Commits and builds

5 minute read

Overview

CloudBees Release Orchestration SaaS enables you to view all commits and builds, including their status, and a visual representation of the pipeline from commit to production. Build summary, test results details, deployment summary, and success or failure status are all available. You can find where a given failure is, who should be notified, and how it can be fixed. Because you have visibility into all errors in build, deploy, test, and custom steps, you can make informed decisions leading to successful deployments.

You must have the Admin, Developer, QA, or Manager role to access Orchestration  Commits and Orchestration  Builds.

Accessing and filtering commits and builds

You can filter a list of commits or builds, display a visual representation of a selected pipeline, and display details of the pipeline execution.

Table 1. Pipeline details displayed on Orchestration  Commits and Orchestration  Builds
Detail Orchestration  Commits Orchestration  Builds

Average deployment lead time (the average time taken for a commit to reach production)

Commit date/time

Build date/time

Build ID

Commit ID

Pipeline name

Description

Developer

Pipeline status

Deployment lead time (the time a commit takes to reach production)

To access commits or builds:

  1. From the CloudBees Release Orchestration SaaS Home page, select one of the following:

    • Orchestration  Commits  Post-merged

    • Orchestration  Commits  Pre-merged

    • Orchestration  Builds

      Builds
      Figure 1. A list of builds
  2. Select how you want to filter from the options:

    • Pipeline group

    • Pipeline name

    • A time duration

    • Your own commits (not available on Orchestration  Builds)

    • Code branch (not available on Orchestration  Builds)

      list of builds
      Figure 2. Filtering builds by pipeline group, name and time frame
      Filtered commits
      Figure 3. Filtering commits by branch and time frame
  3. Select a commit or build.

You have filtered a list of commits or builds, and a visual representation of your selected pipeline displays.

CloudBees Release Orchestration SaaS displays steps in the pipeline according to your pipeline definition in Orchestration  Pipeline composer.

Details of post-merged commit screen
Figure 4. Highlighted details of a pipeline from a post-merged commit list

The figure above highlights the following on the visual representation of the pipeline:

  1. Select the commit ID to view the commit in the repository.

  2. Select Expand to display the pipeline in an expanded view.

  3. The status of each step or stage is located on its upper-right corner.

    • A green checkmark icon marks a passing step/stage.

    • A red exclamation point icon marks a failing step/stage.

  4. Select a completed step to view its console log. Select Ok to close.

    Console log
    Figure 5. Console log of completed step in deploy to stage
  5. Select a completed stage to view its summary. Refer to Accessing a completed stage summary for more information.

  6. Select Current builds for any environment to display the current list of builds for that environment.

    Current builds
    Figure 6. An example of current builds on the stage environment
  7. Select an environment to view test results. To learn more, refer to Accessing a test summary.

  8. If a stage has a WAITING For Approval pipeline status, and you are the approver, you can provide feedback. Refer to Approving/rejecting a pipeline execution for more information.

  9. The time taken is displayed below each step/stage.

In Orchestration  Builds, the build ID links to the following:

  • Commit date and time

  • Commit ID

  • Description

  • Developer

If a PR is merged in Orchestration  Commits  Post-merged, you can select the linked list of commits in the feature branch to display all linked commits.

Accessing a completed stage summary

In the visual representation of a pipeline, you can select a completed stage to view its summary.

To access a completed stage summary:

  1. From the CloudBees Release Orchestration SaaS Home page, select one of the following:

    • Orchestration  Commits  Post-merged

    • Orchestration  Commits  Pre-merged

    • Orchestration  Builds

  2. Select a build or commit.

  3. Select a completed stage to view:

    • Build ID.

    • Build date and time.

    • Pipeline name.

    • Commit ID. Select the commit ID to view the commit in the repository.

    • Developer.

  4. (Optional) Select New browser tab View full log to open the log file in a new browser tab. Refer to Accessing a log file for more information.

  5. (Optional) Select CloudBees CI icon or Jenkins icon, as appropriate, to open the Job URL in a new browser tab.

The completed stage summary details are displayed. Select Ok to close the stage summary.

Job URL
Figure 7. An example stage summary with job URL link highlighted

Accessing a log file

In the visual representation of a pipeline, you can select a completed stage to view its log file in a new browser tab. Any errors are highlighted.

To access a log file from a completed pipeline stage:

  1. From the CloudBees Release Orchestration SaaS Home page, select one of the following:

    • Orchestration  Commits  Post-merged

    • Orchestration  Commits  Pre-merged

    • Orchestration  Builds

  2. Select a build or commit.

  3. Select a completed stage.

  4. Select New browser tab View full log.

    Stage summary
    Figure 8. Summary of completed stage with View full log highlighted
  5. (Optional) If the stage has failed, you can select FILE A BUG to report a bug in Jira.

Log file no errors
Figure 9. A successful stage log file with blank error message highlighted

For some failed steps, there is both a Root Cause log and All logs.

Select All Logs to display the complete log. You can select the following log types:

  • CI Console (console logs in real time for every build)

  • CI-Infra

  • Build System

  • Build-Infra(K8S)

Root cause logs
Figure 10. The root cause of a failed pipeline stage highlighted

The log file from the completed pipeline stage is displayed in a new browser tab, and if the pipeline failed, the error is highlighted.

Accessing a test summary

The CloudBees Release Orchestration SaaS test summary provides testing duration, number of successful and failed test runs, and logs for each test.

To access test summary details:

  1. From the CloudBees Release Orchestration SaaS Home page, select one of the following:

    • Orchestration  Commits  Post-merged

    • Orchestration  Commits  Pre-merged

    • Orchestration  Builds

  2. Select a build or commit.

  3. Select a stage environment or select Expand. The test results are displayed as vertical bars.

    Test suites
    Figure 11. Test results highlighted above the environment
  4. Select a bar.

    • A green bar indicates passing tests.

    • A red bar indicates failed tests.

    • A gray bar indicates no data.

      Test details
      Figure 12. An example of test summary details

The test summary details are displayed. You can select:

  1. The console log.

  2. The job URL.

  3. The root cause for a failed test.

  4. An open bug.

  5. Bug icon to file a bug.

  6. The log for a passing test.

Select OK to close the test summary details.

Identifying a rolled back commit

A red rollback icon next to Commit ID indicates that the current commit is rolled back to the previous commit. To learn more, refer to Enabling rollback.

Rollback pipeline view
Figure 13. An example of a rolled back commit with rollback icon highlighted

Select Rollback History to display the stage history, including:

  • The build ID for the commit that was rolled back

  • Current build ID

  • Time and date of rollback

  • Email of the person who did the rollback

  • Any comments

Identifying a hotfixed commit

An orange HF icon next to the Commit ID indicates that the current commit is hotfixed. A hotfix is useful to modify a commit if there is an issue in an environment, but you still want to deploy a build.

Hotfixed commit
Figure 14. An example of a hotfixed commit with HF icon highlighted

Restarting a pipeline

If your pipeline fails, you may be able to restart it. Pipelines that can be restarted will have RESTART available above the failed stage.

To restart a pipeline:

  1. From the CloudBees Release Orchestration SaaS Home page, select one of the following:

    • Orchestration  Commits  Post-merged

    • Orchestration  Commits  Pre-merged

    • Orchestration  Builds

  2. Select a commit with a FAILED pipeline status.

  3. Select RESTART above the failed stage.

    Restart
    Figure 15. Restarting a pipeline
  4. Select PROCEED.

Your pipeline restarts.

Verifying the deployment

CloudBees Release Orchestration SaaS features deployment verification. Deployment verification determines if a critical problem is present after deployment. A red icon displays if there is a failure. For more information, refer to Verifying deployment.

Deployment verification
Figure 16. Deployment verification

Selecting the failed deployment verification icon displays:

  • Health rules violated

  • Violation summary

  • Start time

  • Severity

  • AppD link

Failed deployment verification information
Figure 17. A failed deployment verification example