Skip to content

jafarre-bi/testCloning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

toolchain-to-template

The toolchain-to-template script takes a Toolchain URL and will generate an OTC Template in the current folder that when run creates a clone of you original toolchain. For example:

./toolchain-to-template.sh https://cloud.ibm.com/devops/toolchains/2665ce98-ea71-43e8-b723-19bafdb7a541?env_id=ibm:yp:us-east`

SETUP

  1. The toolchain-to-template.sh script requires that the following utilities are pre-installed on your PATH: ibmcloud, curl, jq (https://stedolan.github.io/jq/), and yq (https://github.com/mikefarah/yq)
  2. Create a temporary work folder where the script will generate your template
  3. Download and copy toolchain-to-template.sh to your work folder
  4. Use ibmcloud CLI to login to the account where your toolchain resides
  5. Visit your Toolchain in the browser and copy the URL

RUN THE SCRIPT

In a shell run the following: ./toolchain-to-template.sh https://your-toolchain-url

The script generates a .bluemix folder that contains your template. To use the template create a git repo and copy the .bluemix folder into it. Commit, push and then visit your repository on an OTC Setup/Deploy page.

e.g https://cloud.ibm.com/devops/setup/deploy?env_id=ibm:yp:us-south&repository=https://your_repository_url

(Note: if your repository is private add "&repository_token=your_git_access_token")

Open the Setup/Deploy URL in a browser and click "Create" and the template will produce a newly minted clone of your original toolchain.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages