-
Notifications
You must be signed in to change notification settings - Fork 155
Upload from Azure Pipelines doesn't have correct PR number set #189
Comments
Just to confirm, making these changes fixes the reporting of the coverage. It looks like the bash script in this repository is out of date compared to https://codecov.io/bash so I wasn't able to open a PR. |
@drazisil is there anythink that we can do to help fix this issue, we recently moved out some projects from node uploader to bash. |
Hi @armano2 I'm not sure why #158 was closed, looks like there was some discussion about the envs, but it was before i started focusing on this repo. If you want to fix this in a PR, I'd be happy to review and merge if it works and passes tests. Otherwise it's on my backlog behind normal support duties. |
i did some small fix to it but i'm unsure how to test this, and as for my repo - bash: bash <(curl -s https://codecov.io/bash) -P "$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER"
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
displayName: 'Publish code coverage report' |
Thanks, @armano2 This got lost in my email inbox. |
Resolved via #256 |
I am trying to use the bash script from https://codecov.io/bash to upload coverage reports from Azure Pipelines, and the upload itself works, but in the codecov dashboard it looks like the commit came from a merge into master when in fact it came from a pull request. I think one of the issues might be the naming of the environment variables. In the script, I see:
Whereas running
env
on Azure Pipelines gives (removed many variables for clarity):So it looks like
$PULL_REQUEST_NUMBER
should be$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER
and$PULL_REQUEST_ID
should be$SYSTEM_PULLREQUEST_PULLREQUESTID
?The text was updated successfully, but these errors were encountered: