Code Quality job failing - bash: not found

I’m trying to add the CodeQuality job/template to an existing project, but am getting the following output when the job runs

Executing "step_script" stage of the job script
00:01
Using docker image sha256:81f5749c9058a7284e6acd8e126f2b882765a17b9ead14422b51cde1a110b85c for docker:19.03.12 with digest docker@sha256:d41efe7ad0df5a709cfd4e627c7e45104f39bbc08b1b40d7fb718c562b3ce135 ...
$ curl -sL https://sentry.io/get-cli/ | bash
/bin/sh: eval: line 136: bash: not found
/bin/sh: eval: line 136: curl: not found
Uploading artifacts for failed job
00:01
Uploading artifacts...
WARNING: gl-code-quality-report.json: no matching files 
ERROR: No files to upload                          
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 127

I added the following to our gitlab-ci.yml

include:
  - template: Code-Quality.gitlab-ci.yml

code_quality:
  artifacts:
    paths: [gl-code-quality-report.json]

@jolyon1 - Welcome to the forum and thanks for the post!

If this is a public project on gitlab.com could you link to it by chance? The line with the curl call isn’t familiar and I don’t believe it’s part of the CodeQuality setup the template should import.

Thanks!

-James H, GitLab Product Manager, Verify:Testing

Hi James, it’s a private project on gitlab.com, but my usernames match between here at gitlab.com.

There’s a merge request called “Add code quality template” if you’re able to take a direct look that would be appreciated.

Cheers, Jolyon

@jolyon1 - I can’t access a private project without being a member of it so couldn’t take a look.

I have a sample project setup that has a recent MR with CodeQuality working that you could reference to see if there are differences in the setup.

Hopefully this helps!

-James H, GitLab Product Manager, Verify:Testing