Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions eng/pipelines/coreclr/templates/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
condition: always()

# Publish product output directory for consumption by tests.
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
rootFolder: $(buildProductRootFolderPath)
includeRootFolder: false
Expand All @@ -167,7 +167,7 @@ jobs:
displayName: 'product build'

# Publish test native components for consumption by test execution.
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
rootFolder: $(testNativeRootFolderPath)
includeRootFolder: false
Expand All @@ -178,7 +178,7 @@ jobs:
displayName: 'native test components'

# Publish test build root for consumption by test execution.
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
rootFolder: $(testBuildRootFolderPath)
includeRootFolder: false
Expand Down
6 changes: 3 additions & 3 deletions eng/pipelines/coreclr/templates/build-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:


# Download product binaries directory
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: $(buildProductRootFolderPath)
artifactFileName: '$(buildProductArtifactName)$(archiveExtension)'
Expand All @@ -90,7 +90,7 @@ jobs:


# Zip and publish managed test components
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
rootFolder: $(testRootFolderPath)
includeRootFolder: false
Expand All @@ -103,7 +103,7 @@ jobs:

# Publish .packages/microsoft.net.sdk.il needed for traversing
# test projects during the copynativeonly command in run test job.
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
rootFolder: $(microsoftNetSdkIlFolderPath)
includeRootFolder: false
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/coreclr/templates/checkout-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetchDepth: 5

### Zip up downloaded repo and publish to Helix
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
displayName: 'GIT repository (Windows)'
rootFolder: $(Build.SourcesDirectory)
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
fetchDepth: 5

### Zip up downloaded repo and publish to Helix
- template: upload-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
displayName: 'GIT repository (Unix)'
rootFolder: $(Build.SourcesDirectory)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
steps:

# Download product build
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: $(buildProductRootFolderPath)
artifactFileName: '$(buildProductArtifactName)$(archiveExtension)'
Expand Down
216 changes: 0 additions & 216 deletions eng/pipelines/coreclr/templates/job.yml

This file was deleted.

2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/templates/perf-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:


# Download product binaries directory
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: $(buildProductRootFolderPath)
artifactFileName: '$(buildProductArtifactName)$(archiveExtension)'
Expand Down
12 changes: 6 additions & 6 deletions eng/pipelines/coreclr/templates/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:

# Download and unzip managed test artifacts
- ${{ if ne(parameters.corefxTests, true) }}:
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: '$(testRootFolderPath)'
artifactFileName: '$(testArtifactName)$(archiveExtension)'
Expand All @@ -112,7 +112,7 @@ jobs:

# Download and unzip test build tree
- ${{ if ne(parameters.corefxTests, true) }}:
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: '$(testBuildRootFolderPath)'
cleanUnpackFolder: false
Expand All @@ -122,7 +122,7 @@ jobs:


# Download product binaries directory
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: $(buildProductRootFolderPath)
artifactFileName: '$(buildProductArtifactName)$(archiveExtension)'
Expand All @@ -133,7 +133,7 @@ jobs:
# Download and unzip the Microsoft.NET.Sdk.IL package needed for traversing
# ilproj test projects during copynativeonly.
- ${{ if ne(parameters.corefxTests, true) }}:
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: '$(microsoftNetSdkIlFolderPath)'
artifactFileName: '$(microsoftNetSdkIlArtifactName)$(archiveExtension)'
Expand All @@ -143,7 +143,7 @@ jobs:

# Download and unzip native test artifacts
- ${{ if ne(parameters.corefxTests, true) }}:
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
unpackFolder: '$(testNativeRootFolderPath)'
artifactFileName: '$(testNativeArtifactName)$(archiveExtension)'
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:


# Send tests to Helix
- template: send-to-helix-step.yml
- template: /eng/pipelines/coreclr/templates/send-to-helix-step.yml
parameters:
displayName: Send tests to Helix
buildConfig: $(buildConfigUpper)
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/coreclr/templates/xplat-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ parameters:
variables: {} ## any extra variables to add to the defaults defined below

jobs:
- template: job.yml
- template: /eng/common/templates/job/job.yml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems correct but all other path changes are just using absolute paths instead of relative ones. That doesn't seem right.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually interesting. Apart from the fact that the change somehow weirdly fails upon initialization so that I have absolutely no idea what's wrong, this is basically the reason why I waited with the change until the consolidation. For some reason it looks like all the template paths are interpreted in context of the job.yml script, this is why the relative paths no longer work. I would love to figure out how to work around this but so far I haven't found how to do that yet.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, I didn't know that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to figure out how to work around this but so far I haven't found how to do that yet.

I don't think that's possible. I think because yml expands templates in place, and first goes the deepest level and then starts expanding, whenever it expands this templates, the path will now be within the context of job.yml -- it might be a bug, but I don't think there is a way now to do it without absolute paths. Might be worth opening a bug or asking.

parameters:

name: ${{ parameters.name }}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
clean: true

# Download the GIT repository
- template: download-artifact-step.yml
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
displayName: 'GIT repository'
cleanUnpackFolder: false
Expand Down