Bridge for Git Zowe CLI mapping create
search cancel

Bridge for Git Zowe CLI mapping create

book

Article ID: 227179

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Using Endevor Bridge for Git CLI to create mapping and run into the following error:

zowe endevor-bridge-for-git mapping create --remote-url https://xxxxx.xxx.xx.xxxxxx.net/xxx/xx/xxx-util.git --endevor-instance ENDEVOR --endevor-environment XXXX --endevor-system XXXX --endevor-subsystem XXXX -t xxxxxxxx --endevor-profile XXXXX

Command Error:
Rest API failure with HTTP(S) status 404
Error Details:
HTTP(S) error status "404" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.

Host:      xxxxxxx-xxxxx.server.xxxxxx.net
Port:      8181
Base Path: rest/xxxx/vx
Resource:  git/repository/verify
Request:   PUT
Headers:   [{"Content-Type":"application/json"}]
Payload:   {
  mirrorRepoUrl: 'https://xxxxx.xxx.xx.xxxxxx.net/xxx/xx/xxx-util.git'
}

 

 

Environment

Release : 18.1

Component : BRIDGE FOR GIT

endevor-for-zowe-cli plugin  5.7.3

endevor-bridge-for-git-for-zowe-cli plugin 1.2.0

Resolution

Ensure that profiles are set up correctly for the respective types:

Endevor Bridge for Git profile:

  • has username from Git that uses the correct capitalization
  • has a token that the user actually creates in Bitbucket (rather than the token that is auto-generated by Bridge for its use). 

Endevor profile:

  • has correct basePath value 

For the command itself, ensure that parameters not specified in the Endevor profile are covered, included stage number (--endevorsn).

zowe endevor-bridge-for-git mapping create --remote-url https://bitbucket.web.xxxxxxxx.net/scm/xx/xxxxx-xxxxxxx.git --endevor-instance ENDEVOR --endevor-environment xxxx --endevor-system xx --endevor-subsystem xxx --endevorsn 1 --read-only --endevor-profile Xxxxxx