Create a Release from a Git Repository
This topic describes how to configure Digital.ai Release to start a release automatically when changes are pushed to a Git repository.
A Git trigger polls a repository for new commits. When it detects one, it starts a release from a template that contains an External Script task. The External Script task retrieves a script from the repository over HTTP/HTTPS and runs it on the Release server.
To set this up:
-
Create a connection for the Git repository:

-
Create a template with an External Script task. Set the task's URL to the HTTP/HTTPS location of the script in the repository. You can protect the URL with HTTP basic authentication.

For more information about configuring this task, including supported script languages, see External Script Tasks.
-
Add a Git poll trigger to the template:

For more information about configuring the trigger, see Git triggers.
When you push changes to the repository, the trigger creates a new release from the template and starts it immediately, running the current version of the script for each commit.
To define the release itself (its phases, tasks, and task groups) as code in the script, use the Release DSL. See Code releases using the Releasefile.