Bridge for Git Zowe CLI mapping create

book

Article ID: 227179

calendar_today

Updated On:

Products

Endevor Software Change Manager (SCM)

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://stash.dts.fm.rbsgrp.net/scm/es/ed1-util.git --endevor-instance ENDEVOR --endevor-environment UTIL --endevor-system ED --endevor-subsystem ED1 -t b40a1f02 --endevor-profile Qplex

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:      evwstom-qplex.server.rbsgrp.net
Port:      8181
Base Path: rest/evcs/v1
Resource:  git/repository/verify
Request:   PUT
Headers:   [{"Content-Type":"application/json"}]
Payload:   {
  mirrorRepoUrl: 'https://stash.dts.fm.rbsgrp.net/scm/es/ed1-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.banksvcs.net/scm/es/splex-bfgtest.git --endevor-instance ENDEVOR --endevor-environment UTIL --endevor-system ED --endevor-subsystem ED1 --endevorsn 1 --read-only --endevor-profile Splex