How to fix Windows Runners failing to detect new applications in Bitbucket Cloud Pipelines

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

This article provides guidance on how to address the issue of Pipelines Windows runners failing to automatically detect newly installed applications on your Windows machine while the runner is in operation.

Environment

Bitbucket Cloud Pipelines Windows runners

Diagnosis

After setting up Pipelines Windows runners on your self-hosted Windows machine, you proceeded to install an application for use in Pipelines. This installation resulted in the alteration of the PATH variable in Windows. Despite running a Pipelines build, it appears that the installed application (e.g. Cmake) is not functioning properly.

Example error message:

1 CMake is required to be installed and in the path. Bin=cmake

Cause

When setting up a Windows runner for the first time, it captures all current environment variables and their values, including the PATH variable. However, it's important to note that these snapshots taken by Windows runners are not updated in real-time. This means that any new application installations will not be reflected in the PATH variable for Windows runners. It's crucial to keep this in mind when working with Windows runners.

Solution

To ensure that the new variables and their values take effect, it is necessary to stop and start your Windows Runners.

You can also check Troubleshooting runners documentation for more information.

If you are still unable to resolve the issue after following this troubleshooting article, please raise a support ticket or raise a community support ticket for further assistance.

Description

How to fix Windows Runners failing to detect new applications in Bitbucket Cloud Pipelines

Product

Bitbucket Cloud

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.