BMC AMI DevX Workbench Code Pipeline for Git (Code Pipeline for Git)OverviewThis extension enables key features from BMC AMI DevX Workbench Code Pipeline for Git product that will allow users to integrate their Code Pipeline, Git, and Visual Studio Code development processes. With the Code Pipeline for Git Visual Studio Code extension, you can load source from your Git repository into Code Pipeline and also perform generate, generate with parms and build operations. The extension works by sending requests from Visual Studio Code to your Workbench CLI installation and to CES which connects to Code Pipeline on the mainframe. Requirements
Extension SettingsThis extension contributes the following settings:
Command DescriptionsCode Pipeline for Git BuildExecutes a Code Pipeline CLI command to load the selected files into Code Pipeline and immediately build them. In File Explorer this command is available in the context menu and will work on single and multiple selections. From the command palette or editor menu, this command will execute against the file currently open in the editor. After the task is loaded, the Code Pipeline for Git build request will find any other impacting tasks and add them to the generate set. This is to ensure that changes in one program did not cause compile errors in another impacting program. Code Pipeline for Git Clear Stored CredentialsClears the stored mainframe username and password. After using this command, you will be prompted for your username and password the next time you use a Code Pipeline for Git command. Use this command if you need to change the username and password that is used when connecting to Code Pipeline on the mainframe. Code Pipeline for Git GenerateExecutes a Code Pipeline CLI command to load the selected files into Code Pipeline and immediately generate them. In File Explorer this command is available in the context menu and will work on single and multiple selections. From the command palette or editor menu, this command will execute against the file currently open in the editor. Code Pipeline for Git Generate with ParmsExecutes a Code Pipeline CLI command to load the selected files into Code Pipeline and displays a webview to input parms to generate a task. In File Explorer this command is available in the context menu and will work on single selection. From the command palette or editor menu, this command will execute against the file currently open in the editor. Code Pipeline for Git LoadExecutes a Code Pipeline CLI command to load the selected files into Code Pipeline. In File Explorer this command is available in the context menu and will work on single and multiple selections. From the command palette or editor menu, this command will execute against the file currently open in the editor. Complete Setup GuideInstall the Workbench CLIThis extension sends requests to the Workbench CLI. Information about installation and use of the Workbench CLI can be found here. Download mainframe source from Code PipelineIf your current source is stored in Code Pipeline and you need to move it to Git, follow the first part of this guide to download source from Code Pipeline into a local folder. Configure the yaml fileFor the integration between Code Pipeline, Git, and Visual Studio Code to work you need to have a yaml file which specifies the configuration. See this guide for more information on the yaml file structure. Create a Git repository to hold the mainframe sourceThe Git repository will be the one source of truth for your source code. The steps for setting up a git repository will vary depending on which Git client you plan to use. A guide for GitHub can be found here and a guide for BitBucket can be found here. Install the Code Pipeline for Git Visual Studio Code extensionThe Code Pipeline for Git extension can be found in the Visual Studio Code Extension Marketplace. More information on adding extensions to Visual Studio Code can be found here. Configure the Visual Studio Code workspaceIt is advised to set the root folder of your Git repository to be the primary workspace folder in Visual Studio Code. Configure the settings for the Code Pipeline for Git extensionSee Extension Settings for descriptions of each of the settings. The assignment description, level, and Workbench CLI installation path are all stored at the User settings level. The YAML mapping file location can be configured at the Workspace settings level. Install CESThis extension makes REST API calls to Code Pipeline. Information about installation and use of the CES can be found here. Using Code Pipeline for Git CommandsThe File Explorer has the Code Pipeline for Git build, generate, and load commands available in the context menu. To use the commands, select the file(s), right click, and select the Code Pipeline for Git command you want to execute. The first time you use any command, you will be prompted for any settings values that have not been filled it. You will also be prompted for your mainframe username and password. The username and password are saved for the session so you will not be prompted for them again unless you clear the stored credentials or restart Visual Studio Code. The command palette has the Code Pipeline for Git clear stored credentials, build, generate, and load commands available. To use the commands, open a file in the editor, open the command palette and select the command. The first time you use a command, you will be prompted for any settings values that have not been filled it. You will also be prompted for your mainframe username and password. The username and password are saved for the session so you will not be prompted for them again unless you clear the stored credentials or restart Visual Studio Code. Known Issues
Release Notes1.0.0Initial release of the Code Pipeline for Git extension. The extension supports Build, Generate, and Load commands. 1.1.0Extended support to perform a Generate with Parms operation on task. - |