Visibility, Rules, and Variables
While defining a project template, you define its visibility, rules, and variables.
Visibility
Visibility defines who can access the template.
Type | Description |
---|---|
Draft |
The project template is under design and isn’t available in the Templates page of the Create Project wizard. No user can copy data from a draft template. |
Private |
The project template is published and available to organization’s users, but isn’t visible by name to all. It’s visible by name to members of the project template. A non-member user can access the template using the project template’s private key and can copy data. |
Shared |
The project template is published and is available to all users of the organization. Any user can copy data from this project. |
Rules
Rules define data to be copied to the new project.
When you define a project as a project template, all rules are enabled but some cannot be edited or added more than once.
Set this rule ... | To copy this data to the new project: | Can this rule be edited? | Can this rule be added more than once? |
---|---|---|---|
Build Jobs |
The project template's build jobs and pipelines |
No |
No |
Wiki Content |
The project template's wiki pages |
No |
No |
Links |
The project template's link rules |
No |
No |
Git Repository |
The specified Git repositories and its branches |
Yes |
Yes |
External Git Repository |
The specified external Git repository and its branches |
Yes |
Yes |
Announcements |
The project template's announcements |
No |
No |
Variables
Variables define user input. Based on the input, you can configure the template to change the action or properties of data that’s copied to the new project.
Use this variable type: | To accept a: |
---|---|
Boolean |
Boolean string value (such as True-False, Yes-No, or any string values). |
Choice |
Value from a list of values configured by project owners. |
String |
String value. |
URL |
URL value. |