Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource script '/opt/resource/check []' failed: exit status 5 #24

Open
soorena776 opened this issue Aug 2, 2018 · 2 comments
Open

Comments

@soorena776
Copy link

soorena776 commented Aug 2, 2018

Getting the following error: at repo-mr resource:

resource script '/opt/resource/check []' failed: exit status 5

stderr:
jq: error (at <stdin>:1): Cannot index object with number

I am setting the following pipeline. The pipeline gets created successfully.

resource_types:
- name: merge-request
  type: docker-image
  source:
    repository: mastertinner/gitlab-merge-request-resource
resources:
- name: repo-mr
  type: merge-request
  source:
    uri: ((repo-uri))
    private_token: ((repo-private-token))
    username: ((username))
    password: ((password))
jobs:
- name: test-merge-request
  plan:
  - get: repo
    resource: repo-mr
    trigger: false
  - put: repo-mr
    params:
      repository: repo
      status: running
  on_failure:
    put: repo-mr
    params:
      repository: repo
      status: failed
  on_success:
    put: repo-mr
    params:
      repository: repo
      status: success

A few notes:

  • Identical uri, username and password works fine in a separate pipeline with a git resource.
  • The uri format is https://git.mycompany.com/username/project.git
  • Tried a wrong password deliberately and got the same error
  • Didn't have any luck with using private_key either.

Are there any especial configuration needed on the gitlab side? Would appreciate any help.

@soorena776
Copy link
Author

soorena776 commented Aug 2, 2018

Looks like v3 api is not supported in GitLab v>9.5 according to this

@jbrandli
Copy link

This issue happens to me when there are 0 merge requests on the repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants