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

Commit f57122b

Browse files
committed
Okay fine let's do branch name in bash
1 parent 349b105 commit f57122b

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ jobs:
3939
- bash: npm run report:coverage
4040
displayName: generate code coverage reports
4141
condition: succeededOrFailed()
42-
- bash: |
43-
env
44-
bash <(curl -s https://codecov.io/bash) -n "Linux $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" -B "${VCS_BRANCH_NAME}"
42+
- bash: >
43+
bash <(curl -s https://codecov.io/bash)
44+
-n "Linux $(atom_channel)"
45+
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}"
46+
-B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
4547
displayName: publish code coverage to CodeCov
4648
env:
4749
CODECOV_TOKEN: $(codecov.token)
48-
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
4950
condition: succeededOrFailed()
5051
- task: PublishCodeCoverageResults@1
5152
inputs:
@@ -83,11 +84,14 @@ jobs:
8384
- bash: npm run report:coverage
8485
displayName: generate code coverage reports
8586
condition: succeededOrFailed()
86-
- bash: bash <(curl -s https://codecov.io/bash) -n "MacOS $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" -B "${VCS_BRANCH_NAME}"
87+
- bash: >
88+
bash <(curl -s https://codecov.io/bash)
89+
-n "MacOS $(atom_channel)"
90+
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}"
91+
-B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
8792
displayName: publish code coverage to CodeCov
8893
env:
8994
CODECOV_TOKEN: $(codecov.token)
90-
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
9195
condition: succeededOrFailed()
9296
- task: PublishCodeCoverageResults@1
9397
inputs:
@@ -139,17 +143,20 @@ jobs:
139143
- task: PublishTestResults@2
140144
inputs:
141145
testResultsFormat: JUnit
142-
testResultsFiles: $(Agent.HomeDirectory)/test-results.xml
146+
testResultsFiles: $(Agent.HomeDirectory)/test-results.xmlq
143147
testRunTitle: Windows $(atom_channel)
144148
condition: succeededOrFailed()
145149
- powershell: npm run report:coverage
146150
displayName: generate code coverage reports
147151
condition: succeededOrFailed()
148-
- bash: bash <(curl -s https://codecov.io/bash) -n "Windows $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" -B "${VCS_BRANCH_NAME}"
152+
- bash: >
153+
bash <(curl -s https://codecov.io/bash)
154+
-n "Windows $(atom_channel)"
155+
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}"
156+
-B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
149157
displayName: publish code coverage to CodeCov
150158
env:
151159
CODECOV_TOKEN: $(codecov.token)
152-
VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
153160
condition: succeededOrFailed()
154161
- task: PublishCodeCoverageResults@1
155162
inputs:

0 commit comments

Comments
 (0)