You can define variables to inject into the script by using a property-like format.

For example, the following text:

        BRANCH = 1.0
        BUILD = ${VERSION}
    

would inject the corresponding BRANCH and BUILD variables in the script:

        ontrack.branch('PRJ', BRANCH).build(VERSION, "Build ${VERSION}")
    

In the text: