Fiorano provides integration with GIT where users can perform Push, Pull, and Checkout operations for Applications, Extended Services, Group Processes, API Projects, Named Configurations and Schemas to the version control repository.
Version Control Integration for Event Processes
In eStudio
After starting the server, open eStudio, login to the Enterprise Server and perform the following actions:
- Expand the EnterpriseServer node and right-click the Event Process Repository node.
- In the Version Control option, click Configuration.
In the Version Control panel, provide the version control details.
- Click Finish to save the version control configuration details. After the details are saved, any operation can be performed.
- Select the Commit option to push the Event Processes to the remote repository (Event Process Repository > Version Control).
Provide the commit message in the Commit Applications popup. - Similarly, to perform the Checkout operation, select the Checkout option (Event Process Repository > Version Control > Checkout ).
A warning pops up prompting to overwrite event processes.
- For pulling the Event Processes from the remote repository, select the Update option.
A warning will popup prompting to backup the Event Processes. - Click Yes to sync the local repository with the remote.
Select Clone to clone the applications directory from remote repository.
To list all the files pushed from the applications directory to remote repository during a particular commit, use the Revision Log option.
Provide the revision number which gets printed on the server console after every successful push.
To compare the files modified, added and deleted between any two commits in the applications directory, select the Compare option.
Provide the old and the new revision numbers and select OK.
Using REST APIs or cURLs
- Start the Enterprise Server.
Open a web browser and provide the URL as:
- Select the applications tab to see the REST APIs for version control.
Version Control Integration for Extended Service
In eStudio
After starting the server, open eStudio, login to the Enterprise Server and perform the following actions:
- Expand the EnterpriseServer node and right-click the Extended Service Repository node.
- In the Version Control option, click Configuration.
In the Version Control panel, provide the version control details.
- Click Finish to save the version control configuration details.
- After the details are saved, any operation can be performed.
- Select the Commit option to push the Extended Services to the remote repository (Extended Service Repository > Version Control).
Provide the commit message in the popup. - Similarly, to perform the Checkout operation, select the Checkout option (Extended Service Repository > Version Control > Checkout).
A warning pops up prompting to overwrite extended services.
- For pulling the extended services from the remote repository, select the Update option.
- A warning pops up prompting to backup the Extended Services.
- Select Yes to sync the local repository with the remote.
Select Clone to clone the extended service (groupprocess) directory from remote repository.
To list all the files pushed from the extended service directory to remote repository during a particular commit, use the Revision Log option.
Provide the revision number which gets printed on the server console after every successful push.
To compare the files modified, added and deleted between any two commits in the extended service directory, select the Compare option.
Provide the old and the new revision numbers and select OK.
Using REST APIs or cURLs
- Start the Enterprise Server.
Open a web browser and provide the URL as:
- Select the extendedService tab to see the REST APIs for version control.
Version Control Integration for Named Configurations
In eStudio
After starting the server, open eStudio, login to the Enterprise Server and perform the following actions:
- Switch to the Configurations tab located below the Server Explorer Window.
- Select the highlighted Version Control option dropdown and click Configuration.
In the Version Control panel, provide the version control details.
- Click Finish to save the version control configuration details.
- After the details are saved, any operation can be performed.
- Select the Commit option to push the Named Configurations to the remote repository (highlighted version control dropdown as shown above).
Provide the commit message in the popup. - Similarly, to perform the Checkout operation, select the Checkout option.
A warning pops up prompting to overwrite named configurations.
- For pulling the named configurations from the remote repository, select the Update option.
- A similar warning pops up prompting to backup the named configurations.
- Select Yes to sync the local repository with the remote.
Select Clone to clone the named configurations (configurations) directory from remote repository.
To list all the files pushed from the extended service directory to remote repository during a particular commit, use the Revision Log option.
Provide the revision number which gets printed on the server console after every successful push.
To compare the files modified, added and deleted between any two commits in the extended service directory, select the Compare option.
Provide the old and the new revision numbers and select OK.
Using REST APIs or cURLs
- Start the Enterprise Server.
Open a web browser and provide the URL as:
- Select the namedConfig tab to see the REST APIs for version control.
Version Control Integration for Schemas
In eStudio
After starting the server, open eStudio, login to the Enterprise Server, and perform the following actions:
- From the menu bar, go to Tools > Version Control > Configuration.
In the Version Control panel, provide the version control details.
- Click Finish to save the version control configuration details.
- After the details are saved, any operation can be performed.
- Select the Commit option to push the Named Configurations to the remote repository (Tools > Version Control).).
Provide the commit message in the popup. - Similarly, to perform the Checkout operation, select the Checkout option.
A warning pops up prompting to overwrite the schemas.
- For pulling the schemas from the remote repository, select the Update option.
- A similar warning pops up prompting to backup the schemas.
- Select Yes to sync the local repository with the remote.
Select Clone to clone the schemas directory from remote repository.
To list all the files pushed from the extended service directory to the remote repository during a particular commit, use the Revision Log option.
Provide the revision number which gets printed on the server console after every successful push.
To compare the files modified, added, and deleted between any two commits in the extended service directory, select the Compare option.
Provide the old and the new revision numbers and select OK.
Using REST APIs or cURLs
Open a web browser and provide the URL as:
Select the schemas tab to see the REST APIs for version control.
Version Control Integration for API Projects
In API Management Dashboard
- After starting the API Management server, login to the API Management Dashboard.
- Click the username (admin) drop-down present at the upper-right part of the Dashboard and click Preferences.
- Click the Version control tab.
Provide the version control details and click Save.
- Once the git details are saved, any operation can be performed by navigating to the APIProjects tab and then selecting the Version Control icon as shown below:
To push the files to the remote repository, select the Push option. This will prompt for a commit message for the entities to be pushed.
- Similarly, to perform the Checkout operation, select the Checkout option.
A warning pops up prompting to overwrite the schemas.
- For pulling the schemas from the remote repository, select the PULL option.
- A similar warning pops up prompting to backup the schemas.
Select Yes to sync the local repository with the remote.
Select Clone to clone the applications directory from remote repository.
To list all the files pushed from the API projects directory to remote repository during a particular commit, use the Revision Log option.
Provide the revision number which gets printed on the server console after every successful push.
To compare the files modified, added and deleted between any two commits in the API projects directory, select the Compare option.
Provide the old and the new revision numbers and select OK.
Using REST APIs or cURLs
- Start the Enterprise Server.
Open a web browser and provide the URL as:
- Select the apiprojects tab to see the REST APIs for version control.
Viewing the logs
The logs can be viewed inside the jetty.log file present in <FioranoHome>/runtimedata/<serverType>/ <profile>/<mode>/run/logs.
Points to Note
- Custom classes can be used to integrate a different version Control tool.
- Ensure that a backup of the local repository is taken before checking out or pulling from the version control as these operations might lead to loss of any local change in Applications, Extended Services or API Projects repository.
- While trying to sync the local repository with the remote one for the first time separately for Applications, Extended Services, and API Projects respectively, the user should select the Update option rather than Checkout. This Update is a git pull call that will first execute the git init method, create the head and point it to the correct location.
- Once remote and local repo are synched, the Update option, which is git pull, will not perform any action until the remote repo gets modified again.
- If any change is made to the local repository and the user wants to revert back to the previous change, the checkout operation needs to be performed.
- If HA servers are used, a .git directory will get created on the active server. In order to sync this .git for the first time with the passive server, restart the passive server.
- If Github is being used as the git repository then note that Github no longer accepts account passwords when authenticating Git operations on GitHub.com. Instead provide Personal Token in the password field. More about this can be found here
Generate personal access-token on GitHub as follows:
:
In the upper-right corner of any page, click your profile photo, then click Settings.
In the left sidebar, click Developer settings.
In the left sidebar, click Personal access token.