@@ -41,12 +41,11 @@ jobs:
41
41
condition : succeededOrFailed()
42
42
- bash : |
43
43
env
44
- bash <(curl -s https://codecov.io/bash) -n "Linux $(atom_channel)" -P "${VCS_PULL_REQUEST }" -B "${VCS_BRANCH_NAME}"
44
+ bash <(curl -s https://codecov.io/bash) -n "Linux $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:- }" -B "${VCS_BRANCH_NAME}"
45
45
displayName: publish code coverage to CodeCov
46
46
env:
47
47
CODECOV_TOKEN: $(codecov.token)
48
48
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
49
- VCS_PULL_REQUEST: $[coalesce(variables.System.PullRequest.PullRequestNumber, '')]
50
49
condition: succeededOrFailed()
51
50
- task : PublishCodeCoverageResults@1
52
51
inputs :
@@ -84,12 +83,11 @@ jobs:
84
83
- bash : npm run report:coverage
85
84
displayName : generate code coverage reports
86
85
condition : succeededOrFailed()
87
- - bash : bash <(curl -s https://codecov.io/bash) -n "MacOS $(atom_channel)" -P "${VCS_PULL_REQUEST }" -B "${VCS_BRANCH_NAME}"
86
+ - bash : bash <(curl -s https://codecov.io/bash) -n "MacOS $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:- }" -B "${VCS_BRANCH_NAME}"
88
87
displayName : publish code coverage to CodeCov
89
88
env :
90
89
CODECOV_TOKEN : $(codecov.token)
91
90
VCS_BRANCH_NAME : $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
92
- VCS_PULL_REQUEST : $[coalesce(variables.System.PullRequest.PullRequestNumber, '')]
93
91
condition : succeededOrFailed()
94
92
- task : PublishCodeCoverageResults@1
95
93
inputs :
@@ -147,12 +145,11 @@ jobs:
147
145
- powershell : npm run report:coverage
148
146
displayName : generate code coverage reports
149
147
condition : succeededOrFailed()
150
- - bash : bash <(curl -s https://codecov.io/bash) -n "Windows $(atom_channel)" -P "${VCS_PULL_REQUEST }" -B "${VCS_BRANCH_NAME}"
148
+ - bash : bash <(curl -s https://codecov.io/bash) -n "Windows $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:- }" -B "${VCS_BRANCH_NAME}"
151
149
displayName : publish code coverage to CodeCov
152
150
env :
153
151
CODECOV_TOKEN : $(codecov.token)
154
152
VCS_BRANCH_NAME : $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
155
- VCS_PULL_REQUEST : $[coalesce(variables.System.PullRequest.PullRequestNumber, '')]
156
153
condition : succeededOrFailed()
157
154
- task : PublishCodeCoverageResults@1
158
155
inputs :
0 commit comments