All the scripts in this repository include a WhatIf parameter. It can be scary to run a random script off the internet. Note: The destination space should be created before running the clone scripts. It will clone everything in a space for you.ĬloneSpaceProject.ps1 -SourceOctopusUrl " " ` -SourceOctopusApiKey "SOME KEY " ` -SourceSpaceName "Target - SQL Server " ` -DestinationOctopusUrl " " ` -DestinationOctopusApiKey "My Key " ` -DestinationSpaceName "Redgate Space " ` -ProjectsToClone "all " The fastest way to get started is to run this command. CloneTentacleInstance.ps1 - Run this script on deployment targets or workers and it will create a cloned tentacle instance pointing to the destination.ProjectSyncer.ps1 - Will sync a parent project with 1 to N child projects in the same space on the same instance.CloneLibraryVariableSet.ps1 - To be used when you want to copy a library variable set in the same space or different spaces. CloneSpaceProject.ps1 - Will perform a reverse lookup and determine all the items it needs to clone for you.CloneSpace.ps1 - The script to clone a set of items from space to another.This repository contains multiple scripts: It is possible to override that requirement by setting the IgnoreVersionCheckResult to $true, however you run the risk of something not working or cloning correctly. The script will check the version of the source instance and destination instance to ensure this rule is met. The source instance and the destination instance must be running the same major/minor (2020.1, 2020.2) release. There is a far better chance the script will work using a 2020.x or higher release of Octopus Deploy. The script will run some version checks to ensure it doesn't call the wrong API endpoint. It should work with 3.4.x+ release of Octopus Deploy. This script has been tested against the following versions of Octopus Deploy: Pull Requests are accepted on this repository. If you do need help, please zip up your log files and send them to along with a description on what you are trying to do with the tool. For example, you might be getting a 400 bad request when trying to create a lifecycle, but that is a result of a missing environment for a phase. Often times it is a missing command line option or a mis-spelling. We encourage you to review the logs before submitting an issue. Everything it does is logged into the log.txt file. The space cloner is not shy about logging. If you do fork this repo, you might want to keep up to date on the latest changes. The Customer Solutions Team at Octopus Deploy plans on keeping this tool up to date with the latest version of Octopus Deploy. It is licensed under the apache license, you are free to fork the repository and fix any issues or add any features you think is useful. We will do our best to accomodate your request, however, this tool was written for specific use cases in mind and it might not match your specific use case. Please create an issue in this repo and we will address it when we can. Issues, bugs, and feature requests are accepted. If you feel your change can benefit the community, please submit a pull request! Issues and Feature Requests As such, we encourage you to fork it, test it out on an empty space or empty instance, look at the results and modify the script to meet your needs. While it covers a variety of use cases, we know it can't cover every last hyper-specific use case. Note: if you have questions on how to use this script please reach out to repository is licensed under the Apache license. It is limited by the fact it is a CLI tool going against a REST API. It won't cover all use cases, and that is by design. We are sharing this script to help other users of Octopus Deploy. This script was developed internally by the Customer Solutions Team at Octopus Deploy to solve specific use cases we encounter each day. The cloning process won't cover all use cases PowerShell script to help you clone a space using the Octopus Deploy Restful API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |