Skip to content

Importing templates library

Sergei Pogrebnyak edited this page May 1, 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

* Import the template by running 
```bash
sagcc exec templates composite import -i template.yaml overwrite=true
  • Check the list of imported templates
sagcc list templates composite

Next: Using default templates