Importing deploy anywhere projects from external Git repositories
Any deploy anywhere projects that are mapped to an external Git repository can be imported into your current workspaces. This option helps you to restore a project that got deleted or import a project that exists in a different environment.
Before you begin
- You must have the Git repository URL and the necessary credentials to the project repository to be imported.
- If you are using a Git branch other than main to import the project,
update the branch details in your project's scaffolding file. This file is at,
<base_directory>/path/config/scaffolding/<projectname>.yaml. To update the
scaffolding file, do the steps.
- Go to your Git project.
- Switch to the desired branch.
- Open the relevant scaffolding file.
- Make the updates.
- Commit the changes.Note: No changes are required in the scaffolding file when you work with the main branch.
- If any third-party packages are used, make sure that all their dependencies are also included. Without the required dependencies, the package is not enabled after import. Therefore, make sure to resolve any third-party package dependencies beforehand.
- Make sure that none of the existing projects share the name as the repository. If a name
conflict exists, the project import process fails.Note: You cannot rename a project or repository name as it might lead to errors.
- Using shared Git accounts, you can import projects, but you cannot save or commit changes unless
your personal Git credentials are properly configured. Suppose that you are working on a Bitbucket
repository by using a shared account. You can import the project, but to commit changes, you must
add your personal Git credentials, for example, username is john.doe, token is bbp_123xyz..., in the
Packages tab. Without credentials, commit attempts fail due to authentication
errors. This step is crucial to make sure that your commits are properly authenticated, accurately
linked to your identity, and successfully pushed to the external Git repository.
For more information on how to update Git accounts, see Updating packages.