Open tessalt opened 5 years ago
@tessalt Have you included your CIRCLE_TOKEN in your environment variables?
Same here, fails for me with same exit code error. I did include the CIRCLE_TOKEN in the env variables. I included them in my project's environment variables section, I even get this job in the workflow:
#!/bin/bash -eo pipefail
if [[ -z "${CIRCLE_TOKEN}" ]]; then
echo "ERROR: Missing environment variable CIRCLE_TOKEN" >&2
if [[ -n "You have not stored a CircleCI API token. If this is a private repository, the next step will fail.
" ]]; then
echo "You have not stored a CircleCI API token. If this is a private repository, the next step will fail.
" >&2
fi
else
echo "Yes, CIRCLE_TOKEN is defined!"
fi
Yes, CIRCLE_TOKEN is defined!
Turns out I was using a project token instead of a personal one. I don't recall reading anything about this in the docs, maybe I missed it. If not, it would be good to document it :) thanks for the orb
I had this issue and fixed it by making sure my project API token matched the CIRCLE_TOKEN defined in the env variables of my project. So, I was able to use a project token, just had to make sure it matched the env var.
@sapanju I am also facing the same issue. Could you help me understand how you solved the issue. Where does Project API token set ? How to set Project token to CIRCLE_TOKEN ?
@sapanju I am also facing the same issue. Could you help me understand how you solved the issue. Where does Project API token set ? How to set Project token to CIRCLE_TOKEN ?
hi @rmuthupandian - the Project API token can be created by going to your project settings page > Permissions > API Permissions (see https://circleci.com/docs/2.0/managing-api-tokens/?gclid=EAIaIQobChMIg4rgrsvn5AIVhKDsCh0BVAeDEAAYASAAEgLCwPD_BwE#creating-a-project-api-token) Once you create a key, then you can go to your project settings > Environment Variables and set a variable for CIRCLE_TOKEN with the value equal to the API token you just set.
Orb version
1.1.0
What happened
attempting to include
-compare-url/reconstruct
as a step, fails withExited with code 1
Expected behavior
Reconstruct command should not fail