Skip to content

Repository Variable

Definition of a Variable on repository level, the following properties are supported:

Key Value Description Note
name string The name of the variable
value string The variable value

Jsonnet Function

orgs.newRepoVariable('<name>') {
  <key>: <value>
}

Validation rules

  • None

Example usage

orgs.newOrg('OtterdogTest') {
  ...
  _repositories+:: [
    ...
    orgs.newRepo('test-repo') {
      ...
      variables+: [
        orgs.newRepoVariable('TEST_VARIABLE') {
          value: "TESTVALUE",
        },
      ],
    }
  ]
}