YOU54F / cypress-plugins

A home for various Cypress Plugins

Home Page:https://cypress-plugins.saf.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Report button and artifacts giving invalid build specification

andersoncursino opened this issue · comments

I tried to do everything like the README and set the export and everything but it keep me giving some "invalid build specification" with undefined on the URL.

Maybe because the new changes to the URL artifact method? or I'm doing something wrong on export?
My export:
export CIRCLE_PROJECT_ID=${CI_PROJECT_ID}

Any help will be much appreciated! Thank you in advance!

Below the result when I try to access:
image

If you type echo $ci_project_id what is your output? Is that defined?

Also thanks for being super polite. The readme could do with some love. I find it hard to follow 😂

Thanks for the super fast answer, when I try to SSH into Circle Ci image this is what I got:

root@123:~/app# echo $CIRCLE_PROJECT_ID

root@123:~/app# echo ${CI_PROJECT_ID}

root@123:~/app# echo $CIRCLE_BUILD_URL
https://circleci.com/gh/projectname/repositoryname/36
root@a899931c1492:~/app# 

Both variables give empty results: $CIRCLE_PROJECT_ID and ${CI_PROJECT_ID}
But I'm able to get other environment variables.

Also, your README is very good, I'm only asking because I don't see on circle ci environment variables the CI_PROJECT_ID or CIRCLE_PROJECT_ID so I don't know if is something that I'm doing wrong or missing here.

I tried but unfortunately, the API call is returning empty for me all the time, I tried all things and I really don't know how to fix that.

One thing I saw is if I try to access the artifacts only using: https://circleci.com/api/v1.1/project/github/username/project/build_num/artifacts/0/mochareports/report.html

I got success in retrieving the artifact, there is any way to change the URL or any option to insert a custom without using the custom script?

Like:
https://circleci.com/api/v1.1/project/github/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BUILD_NUM} /artifacts/0/mochareports/report.html

I really struggling on retrieving the project id and got success on the report artifact

Really appreciate all the patience to help me! Thanks!

Ok I was able to get the project ID and export as variable, but I'm still getting the undefined, if I echo on workflow I can see the CIRCLE_PROJECT_ID successful exported
image

I really appreciate if you can help me and point the right direction, any other tips or maybe see if I'm still doing something wrong?

thanks in advance!

Never mind, totally forgot that circle ci don't pass env var to other steps, worked, thank you for point on me right direction on the first message! thank you so much for this awesome report tool to slack!

Awesome glad it’s sorted and no worries, glad to be able to share for others ✌🏽