Duplicate & Export/Import
Buddy lets you easily reproduce both individual actions and complete pipelines without the need to manually configure actions every time you do it.
Duplicating
When you duplicate a pipeline, Buddy creates an exact copy of all the pipeline's actions and settings. This feature is useful for creating alternative variants of the same flow, e.g. adding new deployment servers, as you just need to update the details in the deployment action.
To duplicate a pipeline, click the hamburger icon on the source pipeline view and select Duplicate from the list:
Duplicating pipeline
You can also copy individual actions from one project/pipeline to another. The option is available in the upper right corner when adding an action:
Copy action button
A window will appear allowing you to select the project and pipeline to copy from:
Copying actions
Alternatively, you can click the hamburger icon by the action in the pipeline and select the copy option from the dropdown menu:
Copy option on action dropdown
Reproducing in another project
To reproduce a pipeline in another project, go to the target project and click the New pipeline button. Switch to the Duplicate tab, select the pipeline host project, and click the pipeline to duplicate it:
Reproducing pipeline in another project
Export / Import
You can export pipeline configuration to YAML files that can be easily used in any new project or workspace.
Exporting pipelines
- To export configuration of all pipelines in the project, click the hamburger icon at the top and select Download YAML config. You can then manually select the pipelines to export or leave out:
Exporting configuration of all pipelines
- To export configuration of a single pipeline, select the option from the hamburger menu over the desired pipeline:
Exporting configuration of a single pipeline
Importing pipelines
To import your pipelines, go to the target project and select Import YAML config from the hamburger menu at the top:
Importing pipeline configuration
Buddy will ask you to provide the file with pipeline definitions and the decryption salt of the workspace where the pipelines were originally hosted:
Importing pipeline configuration
Managing secrets in exported YAML files
All sensitive data, such as passwords, is encrypted when you export pipelines. To decrypt the data, you need to provide the encryption salt – a random string used as an additional input in the hashing function.
The decryption salt is constant and unique for every workspace. When importing pipelines from another workspace, you need to know the salt of the pipeline's source workspace to decrypt the sensitive data.
Administrators and workspace owners can view the encryption salt in the Workspace Settings tab:
Encryption salt in Workspace Settings
Last modified on January 19, 2024