-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Missing or incorrect GitLab environment variables for parallelization #2343
Comments
|
Need to print good ci params!
|
Also AppVeyor - if new version of commit info returns null for branch, use environment variable. Also add printing |
ok, so we cannot get branch name on Appveyor using commit-info
and thus we get empty string, which we keep and don't override with an environment variable |
* collect GitLab pipeline id and url for #2343 * collect gitlab CI_COMMIT_REF_NAME for branch or tag name * no need to send gitlab commit ref name * print all API request objects without [object Object] shortcuts * fix GitLab CI detection * use explicit git and ci commit branch information * update record test * add appveyor ci branch name test
I am still seeing that the branch is empty when using gitlab. Is this now on its way to be resolved? I am a bit confused that this is closed but also marked as "pending release". |
The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released. |
Cypress 3.1.0
I created a GitLab project https://gitlab.com/bahmutov/kitchensink (branch
3.1.0
) and ran it with--parallel
flagThe config file defined 3 jobs
problem 1
Alls builds created separate runs in the dashboard
problem 2
Also, the branch is missing, see https://dashboard.cypress.io/#/projects/4b7344/runs/2061/specs
GitLab environment variables
GitLab injects the following environment variables during build: https://docs.gitlab.com/ee/ci/variables/#predefined-variables-environment-variables
I printed all variables that start with
CI_
and here they are from several jobs in the same pipeline https://gitlab.com/bahmutov/kitchensink/pipelines/278369521ex-electron
https://gitlab.com/bahmutov/kitchensink/-/jobs/89078654
2x-electron-1
https://gitlab.com/bahmutov/kitchensink/-/jobs/89078655
2x-electron-2
https://gitlab.com/bahmutov/kitchensink/-/jobs/89078656
It seems that the common id is the
CI_PIPELINE_ID
,CI_PIPELINE_URL
and for each job we have separateCI_JOB_ID
andCI_JOB_URL
The text was updated successfully, but these errors were encountered: