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
Installing Cypress with CYPRESS_DOWNLOAD_MIRROR and Artifactory #15697
Comments
It seems similar issue to #8825 which was closed with #8877. From my own personal experience setting up Artifactory to mirror cypress binary:
In summary it is possible to setup Artifactory with self-signed certificate to mirror cypress binaries for different platforms with cypress version 7.3.0. |
@minijus's directions get pretty close, but requires unchecking "Store artifacts locally". Without storing artifacts locally, a lot of the benefits of having an internal cached mirror are lost. Each Cypress download would refetch https://download.cypress.io. Would it be possible to get a new config for the Cypress downloader to use path params? Or have Cypress attempt query params and fallback to path params? That would make it possible to internally cache through JFrog Artifactory. Thank you! 🙂 Related: I recently noticed that the curl https://download.cypress.io/desktop.json | jq {
"name": "Cypress",
"version": "9.1.0",
"packages": {
"mac": {
"url": "https://cdn.cypress.io/desktop/9.1.0/darwin-x64/cypress.zip"
},
"linux64": {
"url": "https://cdn.cypress.io/desktop/9.1.0/linux-x64/cypress.zip"
},
"darwin": {
"url": "https://cdn.cypress.io/desktop/9.1.0/darwin-x64/cypress.zip"
},
"linux": {
"url": "https://cdn.cypress.io/desktop/9.1.0/linux-x64/cypress.zip"
},
"darwin-x64": {
"url": "https://cdn.cypress.io/desktop/9.1.0/darwin-x64/cypress.zip"
},
"linux-x64": {
"url": "https://cdn.cypress.io/desktop/9.1.0/linux-x64/cypress.zip"
},
"win32-x64": {
"url": "https://cdn.cypress.io/desktop/9.1.0/win32-x64/cypress.zip"
}
}
} But Cypress itself still searches for cypress/cli/lib/tasks/download.js Line 67 in 1ff7839
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
When setting Cypress in artifactory, and downloading it with CYPRESS_DOWNLOAD_MIRROR set toward this tool, the download script find binary files as 6.8.0 and not cypress.zip and fail. Apparently I can't rename binaries in artifactory.
My artifactory admin tell me to dothis command before but I can't since it's a post action of Cypress
curl –v « https://artifactory.mycompany.fr/artifactory/remote-download.cypress-generic/desktop/6.8.0?platform=win32&arch=x64 » > cypress.zip
Debug logs
Download method
Operating System
Other
I don't really know if it's an artifactory or a Cypress matter but I need help ^^
The text was updated successfully, but these errors were encountered: