Message "Fail to get the latest commit" is shown when try to deploy a cloud application via fhc stage command
Issue
- Message
"Fail to get the latest commit"is shown when try to deploy a cloud application viafhc stagecommand.
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
- Red Hat Mobile Application Platform (RHMAP) - 3.X
- FHC - FeedHenry Command Line Interface
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
