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

Getting "project not found" error #36

Closed
ggupta36 opened this issue Apr 22, 2020 · 5 comments
Closed

Getting "project not found" error #36

ggupta36 opened this issue Apr 22, 2020 · 5 comments

Comments

@ggupta36
Copy link

Hi Roopak,

Thanks for building this, very helpful. However I am getting the following error while trying to build:


{
  "message" : "Project not found"
}
CircleCI received exit code 0

At first, I thought it's because of some incorrect setting in CIRCLE_TOKEN but I have double verified that it's generated from "User settings" section and added in Env variable. Can you let me know what could be the issue?

@roopakv
Copy link
Owner

roopakv commented Apr 22, 2020

@ggupta36 thank you for the issue, could you tell me which command / job youare trying to use?

and could you post a snippet of your circle config.yml?

@roopakv roopakv transferred this issue from swissknife/circle-monorepo Apr 22, 2020
@pascal-de-ladurantaye
Copy link

Getting the same issue here's the job definition:

trigger-needed-workflows:
    docker:
      - image: circleci/node:12
    working_directory: /home/circleci/project/
    steps:
      - checkout
      - swissknife/trigger-workflows-for-all-modified:
          base-branch: master
          run-mode-for-base-branch: run_for_last_commit
          use-divergence-point: true
          code-param-name-map: '
            [
              {"regex": "^(covid19-national).*", "param_name": "run_covid19_national"},
              {"regex": "^(covid19-toronto).*", "param_name": "run_covid19_toronto"}
            ]'
          additional-param-map: '{"run_trigger_workflow": false}'

@pascal-de-ladurantaye
Copy link

Please excuse me as everything works properly. This job was the only one not configured to use the context with the CIRCLE_TOKEN in it

To avoid this in the future, maybe a check could be added to echo something useful in the console if the CIRCLE_TOKEN variable is empty

@roopakv
Copy link
Owner

roopakv commented May 4, 2020

@pascal-de-ladurantaye that makes a lot of sense. feel free to send me a PR, or I will try add this support over the weekend.

@roopakv
Copy link
Owner

roopakv commented Jun 8, 2020

this is done and will be a part of the next version.

@roopakv roopakv closed this as completed Jun 8, 2020
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

3 participants