Unable to select a buildpack

I am using gitlab.com to test the CI/CD functionality in Gitlab.
I have one file node js application.
When I create the project, the pipeline started with two stages: build and test.
The build fails with this error message:

Status: Downloaded newer image for gliderlabs/herokuish:latest
-----> Unable to select a buildpack
ERROR: Job failed: exit code 1

Any help how to solve this please ?

3 Likes

I am having the same issue with a Go project… first they turn this on automatically and now I have it on and is failing each time I push, yes I can turn it off but I though since is there may as well use it… but can’t find how to fix that error

Status: Downloaded newer image for gliderlabs/herokuish:latest
       -----> Unable to select a buildpack
ERROR: Job failed: exit code 1

Gitlab uses Herokuish to run builds. Herokuish is a utility to emulate Heroku, so we can look at the Heroku documentation for more information.

According to the Heroku page about buildpacks your repository needs to meet certain rules so Heroku understands which buildpack to load.

For instance,

  • If your application is a Ruby application, you need to place a Gemfile in the root (in the top folder of your repository).
  • If your application is a Node.js application, you need to place a ```package.json`` in the root.
  • For other types of application look at the link above.

Hope this helps.

1 Like