Skip to content

Importing templates library

Sergei Pogrebnyak edited this page Sep 15, 2018 · 11 revisions

Importing the latest source code

The latest template library is automatically imported when you use SoftwareAG/sagdevops-cc-server project to set up your Command Central server:

git clone --recursive https://github.com/SoftwareAG/sagdevops-cc-server.git
cd sagdevops-cc-server
ant boot -Daccept.license=true
ant up

When the above process completes

  • The sagdevops-cc-server/library/templates folder contains all default templates source code
  • The default templates are imported into your Command Central server and are ready to be used

Importing a release

  • Navigate to the project releases page
  • Download a release source code as .zip, for example, [https://github.com/SoftwareAG/sagdevops-templates/archive/20180401.zip]
  • Unzip the downloaded file
  • Navigate to templates/ subfolder
  • Import the template by running
sagcc exec templates composite import -i template.yaml overwrite=true
  • Check the list of imported templates
sagcc list templates composite

Importing individual template file

  • Browse to the template.yaml file you want to import and click on the Raw button. For example sag-um-server/template.yaml
  • Download the file using its URL displayed in the browser address bar, e.g.
curl -O https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/master/templates/sag-um-server/template.yaml
  • Import the template by running
sagcc exec templates composite import -i template.yaml overwrite=true
  • Check the list of imported templates
sagcc list templates composite

Next: Using default templates