Introduction
This page details the software required and steps involved for Stormrunner-load integration using Git.
Setup Required
- Install Git Desktop client
- Install StormRunner Load Git Agent
3. Git public/ private Repository
Configure Git Local Repository
- In Git Desktop Client, File> New Repository
- Provide Name and path to local folder, this serves as local repository and will contain all the scripts. Ensure that Name of folder and repository name are same.
- Hit Create Repository
- File > Options and enter the Git account details to configure the remote repository
- To Mirror the folder in the Git account, enter comments in the highlighted field and Hit Commit to Master. (To commit to master, comments are necessary)
and hit Publish Repository.
Launch the SRL Git agent and enter the details.
Leave the key field empty.
Enter the credentials used to log into SRL and fill the Tenant and project Id.
| |
Provide proxy details with authentication parameters as required. In this case we left proxy field blank.
| |
Click + in Git tab to launch Repository Configuration window
Enter repository URL to which scripts will be uploaded.
Provide repository credentials in Advanced field.
Click Retrieve, to retrieve remote repository branch.
Click Ok.
Click Save & Test and ensure that connection is successful.
|
Launching SRL agent
Launch Start SRL Git Agent, as root user/ local admin.
This should launch a command prompt
| |
In SRL > Assets > Agents. You should see something as highlighted | |
In SRL > Assets > Scripts. Click Caret, next to Upload and you should see
Upload & Upload from Git.
|
Upload the scripts to SRL
Save the scripts to local repository in the desktop. (Always delete the results folder from scripts before commit)
In Git hub Desktop Client, commit to Master and Push to Origin.
(optional - In GitHub on web, check to see if scripts are updated with your commit comments.)
(wait for few minutes)
In SRL Assets > Scripts > Upload from Git
You should see a pop up like this.
Select Script and click Add.
Configure script to a scenario and apply RTS as required.
|
Sync the scripts to SRL
Save the modified scripts to local repository in the desktop. (
Always delete the results folder from scripts before commit )
In Git hub Desktop Client, commit to Master and Push to Origin.
(optional - In GitHub on web, check to see if scripts are updated with your commit comments. )
(wait for few minutes)
In SRL Assets > Scripts, search for script that you want to sync.
Select script and Hit Sync Selected. Hit Sync in the popup.
Page refreshes and now select script to check the Last update time.
This should reflect the latest time as there are code changes
*if no code changes are published to Git, then the Last update time, will not change.
|
Note: Always delete the results folder from scripts before commit.The files types that are to be excluded to commit can be configured in the Git Desktop client.
No comments:
Post a Comment