Bridge for Git Explorer enables you to work with work-environment Git-Endevor mappings that are synchronized with Endevor using Endevor Bridge for Git. When you work with a work-environment mapping, you may need to add elements from up the Endevor map back to your mapping. Bridge for Git Explorer reads the information about the mapping that you cloned in your VS Code workspace and provides a list of elements from up the map for a specified Endevor inventory location.
The extension enables developers working with Bridge for Git mappings to:
- Configure the pre-push hook
- Add elements to their mapping
- Add elements with dependencies to their mapping
- See the history of changes to elements
- View the activity of their mapping
- Specify processor groups for elements in their mapping
- Prerequisites
- Getting Started
- Team Configuration File
- Use Cases
- Usage Tips
- Troubleshooting
- Technical Assistance and Support
Ensure that you meet the following host-side and client-side software requirements before you use Bridge for Git Explorer:
Host-side prerequisites:
- Install either Endevor version 18.0.12 with the SO09580 and SO09581 PTFs or Endevor version 18.1 with the SO15978 PTF.
- Install Endevor Web Services.
- Install Endevor Bridge for Git.
Client-side prerequisites:
- Install Visual Studio Code 1.82 or higher.
- Access to either Endevor version 18.0.12 with the SO09580 and SO09581 PTFs or Endevor version 18.1 with the SO15978 PTF.
- Access to Bridge for Git version 2.13 or higher.
- Cloned and opened synchronized Git-Endevor mapping in the VS Code workspace. For more information, see Access and Clone a Git-Endevor Mapping in the Broadcom documentation.
Ensure that you have a Git-Endevor mapping in your VS Code workspace to start working with the extension. Review the use cases to see how you can use the full potential of Bridge for Git Explorer.
With the 0.5.0 release, Bridge for Git Explorer introduces the following features:
- Configuration of the pre-push hook for a mapping
- Ability to view the full details of mapping activity operations
- Ability to specify a processor group for newly created elements in the mapping
In order to start working with Bridge for Git Explorer, the following access information is required by the extension to work with your mapping:
- Your Endevor credentials for the Endevor Connection used by the mapping
- Your git server Personal Access Token (PAT)
This access information can be predefined in Zowe V1 profiles and Zowe V2 team configuration (team config) files. However, you do not need to have these types of profiles to work with the extension. If you do not have Zowe profiles or team config files, the extension prompts you to specify missing values. In this scenario, the specified values are stored until the end of the VS Code session only.
Note: Credentials from existing Zowe profiles and team config files persist between Bridge for Git Explorer sessions.
If you are considering using Zowe profiles, ensure that you create two types of profiles: an Endevor profile and an EBG profile.
Note: Skip the following procedures if you already have the required profiles or you are not planning to use the profile configuration or Zowe at all.
-
Create an Endevor profile.
-
Use the following Zowe CLI command to create an Endevor profile:
zowe profiles create endevor <profile name> --protocol http(s) --host <hostname> --port <port number> --user <endevor username> --password <endevor pwd>
-
Ensure that the profile has the same Endevor configuration that is used for the Git-Endevor mapping in your workspace. For more information about creating an Endevor profile, see Endevor Plug-in for Zowe CLI in the Broadcom documentation. Alternatively, you can use an API ML base profile. For more information see Base Profiles on Zowe Docs.
-
-
Create an EBG profile with Git credentials.
-
Use the following Zowe CLI command to create an Endevor profile:
zowe profiles create ebg <profile_name> --protocol http(s) --host <hostname> --port <port number> --user <git_user> --token <personal_access_token>
-
Ensure that the profile contains the same information for the Bridge for Git server you used to create the mapping. For more information about creating an Endevor Bridge for Git profile, see Endevor Bridge for Git Plug-in for Zowe CLI in the Broadcom documentation.
-
You now can access your work-environment mapping in your workspace and start to use the extension.
Expand your Endevor inventory in the tree and proceed to work with the elements.
Follow these steps:
-
Click the Bridge for Git Explorer icon in the Activity Bar.
The extension opens and the name and branch of your work-environment mapping are displayed in the tree.
-
Click the name of the mapping to expand the tree.
-
View the available systems, subsystems, and elements of the Endevor inventory location by browsing the folders in the tree.
-
Click an element to view its contents.
-
(Optional) To see the location details of an element, hover over and right-click the element, and select View details.
Bridge for Git Explorer supports reading a global team configuration (team config) file. Usually, a system administrator or team leader generates a team config file that contains information about the profiles you need to access certain services, such as Endevor and Bridge for Git. You can use global team configs with your team members to share information about your Endevor connections and Bridge for Git server. For more information about team config, see Using Team Profiles on Zowe Docs.
As an application developer, you can obtain a shared global configuration file from your system administrator and use the file to access shared systems. As a system administrator, ensure that you install Zowe CLI on your workstation before you create a team configuration file.
Review the following use cases to familiarize yourself with the available features of the extension:
- Configure the pre-push hook: Ensure your local changes are validated before pushing to your git server.
- Add to mapping: You can add an element from your workstation to the synchronized mapping.
- Add to mapping with dependencies: You can add an element with associated files from your workstation to the synchronized mapping.
- Show history: You can view the history of the elements up the map in your mapping.
- Specify processor groups for elements: You can specify a processor group for an element that you can use for the Generate action.
- Review Mapping Activity: Review the events that occur in and the status of your mapping.
Bridge for Git mappings include a pre-push hook. The pre-push hook validates changes to elements in the repo against changesets in the git server and Endevor. The pre-push hook specifically looks at the fingerprints of the element, the type, the name, and the location in the folder structure. If your changes are out of date (fingerprint does not match) or any of the file or location conventions are not met, then the pre-push hook will prevent you from pushing to the git server.
We recommend that you install the pre-push hook when you start working with a mapping.
When you have a Bridge for Git mapping open in your workspace, Bridge for Git Explorer prompts you to install the pre-push hook. Ensure that you provide your git username or PAT, depending on your configuration of Bridge for Git.
You can additionally uninstall the pre-push if needed through the command palette.
For more information about how to set up pre-push hooks, see Set up Hooks.
When you navigate the Endevor map and find the needed element, you can select and add the element to your synchronized mapping. Then you can download the element to your local branch by pulling the element from you remote repository.
-
Right-click the element you want to add and select Add to Mapping.
You receive a message that your request has been queued.
-
Ensure that your element is added to the repository by checking the status of the mapping in the Bridge for Git Mapping Activity section.
Alternatively, you can check the status of the mapping in the Bridge for Git application.
-
Click the Source Control icon in the VS Code Activity Bar.
-
Click the ... (three ellipses) icon in the Source Control Repositories section.
-
Select the Pull option to synchronize your remote repository with the local repository.
Alternatively, you can issue the
git pull
command in your terminal to synchronize the repositories.Your element is now available to work with locally.
You can select and add an element with associated files to your synchronized mapping.
Note: An element can have only up to 50 dependencies.
Right-click an element with dependencies you want to add and select Add to Mapping With Dependencies.
As well as with the previous option, you can download an element to your cloned repository by pulling the element, using the in-built git VS Code Pull option or by issuing the git pull
command in your terminal.
For more information about work-environment Git-Endevor mappings, see Work with Git to Endevor Mappings.
Review the history of the elements from up the map in your mapping to identify changes and see the authors and dates of changes. The history of changes is displayed in the Element History section in the explorer tree.
-
Right-click an element and select the Show History option.
The element is displayed in the editor area. The Element History section displays a list of changes.
-
Select an item from the list to display the details.
The element with highlighted changes is displayed in the editor area.
Specify a processor group for an element. You can specify a processor group for existing and newly created elements in your mapping.
-
Open your workspace in VS Code.
-
Right-click an element in the tree and select the Update Processor Group option.
The drop-down menu with processor groups is displayed in the editor area.
-
Select a processor group from the drop-down menu.
The notification confirming the update is displayed.
-
Push a commit to synchronize the element with your GitHub repository.
The extension enables you to review the Bridge for Git mapping activity that lists events and their respective actions for the currently opened mapping. The events include mapping initialization, refresh, generate, and deletion.
For example, you can review whether a newly added element is already in your mapping so that you can pull the added element back to your local repository.
-
Add an element to your mapping by using the Add to Mapping option.
-
Navigate to the Bridge for Git Mapping Activity section.
-
Scroll through the operations for the mapping and optionally right+click and select View Operation Details for a particular entry.
If there are any errors with the operation, the details will provide you with actionable information.
-
Check the status of the repository.
If the added element is in the repository already, you can pull the element back to your cloned repository.
- Select multiple elements: You can select multiple elements and perform actions against the selected elements at once. Press and hold Ctrl (or ⌘) + click elements you want to select. You can then right-click one of the selected elements to see available options. To unselect the elements, press Esc key.
To identify issues in Bridge for Git Explorer, view specific information related to an error message in the output stream of the extension.
Follow these steps:
- Open a new terminal.
- Select the OUTPUT tab.
- Select Bridge for Git Explorer in the drop-down list at top right corner of the terminal dialog box.
The Bridge for Git Explorer extension is made available to customers on the Visual Studio Code Marketplace in accordance with the terms and conditions contained in the provided End-User License Agreement (EULA).
If you are on active support for Endevor, you get technical assistance and support in accordance with the terms, guidelines, details, and parameters that are located within the Broadcom Working with Support guide.
This support generally includes:
- Telephone and online access to technical support
- Ability to submit new incidents 24x7x365
- 24x7x365 continuous support for Severity 1 incidents
- 24x7x365 access to Broadcom Support
- Interactive remote diagnostic support
Technical support cases must be submitted to Broadcom in accordance with guidance provided in “Working with Support”.
Note: To receive technical assistance and support, you must remain compliant with “Working with Support”, be current on all applicable licensing and maintenance requirements, and maintain an environment in which all computer hardware, operating systems, and third party software associated with the affected Broadcom software are on the releases and version levels from the manufacturer that Broadcom designates as compatible with the software. Changes you elect to make to your operating environment could detrimentally affect the performance of Broadcom software and Broadcom shall not be responsible for these effects or any resulting degradation in performance of the Broadcom software. Severity 1 cases must be opened via telephone and elevations of lower severity incidents to Severity 1 status must be requested via telephone.
Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.