Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 349b105

Browse files
committed
Okay let's try using bash expansion instead
1 parent 80a9e55 commit 349b105

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ jobs:
4141
condition: succeededOrFailed()
4242
- bash: |
4343
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}"
4545
displayName: publish code coverage to CodeCov
4646
env:
4747
CODECOV_TOKEN: $(codecov.token)
4848
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
49-
VCS_PULL_REQUEST: $[coalesce(variables.System.PullRequest.PullRequestNumber, '')]
5049
condition: succeededOrFailed()
5150
- task: PublishCodeCoverageResults@1
5251
inputs:
@@ -84,12 +83,11 @@ jobs:
8483
- bash: npm run report:coverage
8584
displayName: generate code coverage reports
8685
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}"
8887
displayName: publish code coverage to CodeCov
8988
env:
9089
CODECOV_TOKEN: $(codecov.token)
9190
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
92-
VCS_PULL_REQUEST: $[coalesce(variables.System.PullRequest.PullRequestNumber, '')]
9391
condition: succeededOrFailed()
9492
- task: PublishCodeCoverageResults@1
9593
inputs:
@@ -147,12 +145,11 @@ jobs:
147145
- powershell: npm run report:coverage
148146
displayName: generate code coverage reports
149147
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}"
151149
displayName: publish code coverage to CodeCov
152150
env:
153151
CODECOV_TOKEN: $(codecov.token)
154152
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
155-
VCS_PULL_REQUEST: $[coalesce(variables.System.PullRequest.PullRequestNumber, '')]
156153
condition: succeededOrFailed()
157154
- task: PublishCodeCoverageResults@1
158155
inputs:

0 commit comments

Comments
 (0)