build command failed using zowe endevor bridge for git CLI
search cancel

build command failed using zowe endevor bridge for git CLI

book

Article ID: 235919

calendar_today

Updated On:

Products

Endevor Brightside

Issue/Introduction

Using Bridge for Git 2.9.0 

Zowe.config.json: 
 "ebg_ZSIC2": {
            "type": "ebg",
            "properties": {
                "protocol": "http",
              "host": "example.com",
              "port": XXXX,
              "user":"########",
              "token": "#########",
            }            
        },


List mapping runs successfully.
Y:\>zowe ebg m ls
context                            mapping         branches owner   init readOnly repository                                                                                        status
TFS_SANDBOX/ESES_MAINFRAME_SANDBOX VDI_EOCF1       1 Branch XXXX 100  false    https://host:port/tfs/TFS_SANDBOX/ESES_MAINFRAME_SANDBOX/_git/VDI_EOCF1       Running
TFS_SANDBOX/ESES_MAINFRAME_SANDBOX VDI_Admin_REXX1 1 Branch XXXX 100  false    https://host:port/tfs/TFS_SANDBOX/ESES_MAINFRAME_SANDBOX/_git/VDI_Admin_REXX1 Running
TFS_SANDBOX/ESES_MAINFRAME_SANDBOX VDI_AUTSJ_COBOL 1 Branch XXXX 100  false    https://host:port/tfs/TFS_SANDBOX/ESES_MAINFRAME_SANDBOX/_git/VDI_AUTSJ_COBOL Running
TFS_SANDBOX/ESES_MAINFRAME_SANDBOX VDI_Admin_REXX2 1 Branch XXXX 100  false    https://host:port/tfs/TFS_SANDBOX/ESES_MAINFRAME_SANDBOX/_git/VDI_Admin_REXX2 Running


Build command failed:
Y:\>zowe endevor-bridge-for-git build execute --endevor-instance ENDEVOR --endevor-subsystem XXXX --endevor-environment XXXX --endevor-system XXXX
Command Error:
missing arguments
- Endevor options (alternatively use an 'endevor' profile): endevor-host, endevor-port, endevor-user, endevor-password


Y:\>zowe endevor-bridge-for-git build execute --endevor-instance ENDEVOR --endevor-subsystem XXXX --endevor-environment XXXX --endevor-system XXXX --endevor-host host --endevor-port port --endevor-user XXXX --endevor-password XXXX
fatal: not a git repository (or any of the parent directories): .git
Command Error:
GIT bash not present: Error: Command failed: git rev-parse --abbrev-ref HEAD
fatal: not a git repository (or any of the parent directories): .git

Environment

Release : 18.1

Component : BRIDGE FOR GIT 2.9.0

Resolution

Run the Zowe B4G CLI build command from within the repository where changes are made to the elements.  

For example,

Y:\> cd  Y:\user\B4GMapping1 

Y:\user\B4GMapping1> enter build command here