icon

Change Working Directory for subsequent Steps

Changes the Working Directory for all subsequent Steps to a specified path.

This Step changes the base Working Directory for every subsequent Step in the Workflow to the specified path.

Useful, for example, for projects like monorepos where the Bitrise workflow primarily takes place in an iOS or android subdirectory.

Configuring the Step

  1. Set the Directory path to the path you want subsequent Steps to use as their Working Directory.
  2. Use the Create path if doesn't exist? input to control whether the path is created when it is missing.

Troubleshooting

If the Step fails with a "does not exist" error, either set Create path if doesn't exist? to true, or make sure an earlier Step creates the directory. The provided path is resolved to an absolute path before it is applied, so relative paths are resolved against the current Working Directory.

Related Steps

Similar steps

Exports environment variables to be able to detect if the currently running build's status has changed to a previous one.

Updates the Android applicationId in your project's build.gradle file.

Updates the Android versionCode and versionName in your project's build.gradle file.

Changes a selected value in a targeted file.