This integration allows to manage scripts in a git repository to ensure a version control of the scripts before execution.
No Support and No Warranty are provided by Absyss SAS for this project and related material. The use of this project's files is at your own risk.
Absyss SAS assumes no liability for damage caused by the usage of any of the files offered here via this Github repository.
Consultings days can be requested to help for the implementation.
- Visual TOM 7.1 or greater
- Git installed on the agent
- Unix Agent (Windows usage will be available in the future)
The scripts executed by Visual TOM must be stored in a git repository and the remote repository must be accessible from the agent. The batch queue will check:
- If Git is installed
- If a specific branch is specified with the variable 'VT_GIT_BRANCH'
- If the script is up to date with the remote repository
- If the script is not up to date:
- If the variable 'VT_GIT_FORCE_UPDATE' is set, the batch queue will try to pull the last version from the remote repository
- Otherwise, the batch queue will display a message and the Job will run the current version
- If the script is not up to date:
- If any of these verifications fails, the batch queue will stop and an error will be displayed and the Job will be set to "In Error" with return code 99
- Unless the variable 'VT_GIT_IGNORE_ERROR' is set to true, in this case the Job will run the script
The variables can be defined via a context or a variable on the Environment, the Application, the Job, the Submission Unit or the Agent. To enable VT_GIT_FORCE_UPDATE and VT_GIT_IGNORE_ERROR, the value of the variable must be set to true (o|y|1|true|yes|oui).
The creation of the batch queue is the same as a normal batch queue.
The batch queue works only if the script specified in the field "Script" of the Job is a script and not a command.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details
Absyss SAS has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.