Message "Fail to get the latest commit" is shown when try to deploy a cloud application via fhc stage command

Solution Verified - Updated -

Issue

  • Message "Fail to get the latest commit" is shown when try to deploy a cloud application via fhc stage command.

Following an example of this issue.

dhcp-17-108:POC01900091-Cloud-App cmacedo$ fhc app stage --app=ar2l6fuflwnx47ncbhgkwc4c --env=dev --runtime=node4 --gitRefType=tag --gitRefValue=1 --gitRefHash=1
fhc ERR! [ { action: {},
fhc ERR!     cacheKey: '2e1c396bef728975fde2ecc406b6f2f4',
fhc ERR!     error: 'Fail to get the latest commit \'Error contacting fh-scm: null - TypeError: ref.value.indexOf is not a function\\n    at getRefValue (/data/fh-scm/releases/1.0.7-323/lib/gitrepo.js:448:32)\\n    at Object.exports.checkCommit (/data/fh-scm/releases/1.0.7-323/lib/gitrepo.js:711:16)\\n    at Object.<anonymous> (/data/fh-scm/releases/1.0.7-323/lib/githubhandler.js:609:13)\\n    at nextMiddleware (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/middleware/router.js:175:25)\\n    at param (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/middleware/router.js:183:17)\\n    at pass (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/middleware/router.js:191:11)\\n    at Object.router (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/middleware/router.js:197:7)\\n    at next (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/http.js:203:15)\\n    at Object.bodyParser [as handle] (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/middleware/bodyParser.js:85:26)\\n    at next (/data/fh-scm/releases/1.0.7-323/node_modules/connect/lib/http.js:203:15)\'',
fhc ERR!     log: [ 'Deploy started for environment dev' ],
fhc ERR!     status: 'error' } ]

Environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content