-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Split Build job into Build Packages and Build rest of artifacts
#30173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6a00e59
refactor to start testing earlier
scbedd 942c1c6
remove pass of argument that we don't actually use
scbedd 99612ef
make BuildExtended depend on Build so that the package.json exists
scbedd c886cba
make analyze depend upon build stage
scbedd 72e128d
make analyze inherit the artifacts from build-extended
scbedd 4e70653
now we properly submit an apireview. need to get eng/common change th…
scbedd 4f505ff
Merge remote-tracking branch 'upstream/main' into feature/split-build…
scbedd 1306f70
use newly parameterized yml
scbedd 6781e3a
correct a path that was pointlessly traversing up a directory only to…
scbedd 48baf69
Merge remote-tracking branch 'upstream/main' into feature/split-build…
scbedd 3227766
ensure that the correct artifact name is being passed around. ensure …
scbedd 7fde1e4
add template code change
scbedd 77343bf
Revert "add template code change"
scbedd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
eng/pipelines/templates/steps/build-extended-artifacts.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| parameters: | ||
| - name: BeforePublishSteps | ||
| type: object | ||
| default: [] | ||
| - name: TestPipeline | ||
| type: boolean | ||
| default: false | ||
| - name: ServiceDirectory | ||
| type: string | ||
| default: '' | ||
| - name: BuildDocs | ||
| type: boolean | ||
| default: true | ||
| - name: Artifacts | ||
| type: object | ||
| default: [] | ||
| - name: DevFeedName | ||
| type: string | ||
| default: 'public/azure-sdk-for-python' | ||
| # The variable TargetingString is set by template `eng/pipelines/templates/steps/targeting-string-resolve.yml`. This template is invoked from yml files: | ||
| # eng/pipelines/templates/jobs/ci.tests.yml | ||
| # eng/pipelines/templates/jobs/ci.yml | ||
| # eng/pipelines/templates/jobs/live.test.yml | ||
|
|
||
| # Please use `$(TargetingString)` to refer to the python packages glob string. This was previously `${{ parameters.BuildTargetingString }}`. | ||
| steps: | ||
| - task: DownloadPipelineArtifact@2 | ||
| inputs: | ||
| artifactName: 'packages' | ||
| targetPath: $(Build.ArtifactStagingDirectory) | ||
|
|
||
| - template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml | ||
| parameters: | ||
| PackageName: "azure-template" | ||
| ServiceDirectory: "template" | ||
| TestPipeline: ${{ parameters.TestPipeline }} | ||
|
|
||
| - template: /eng/common/pipelines/templates/steps/set-default-branch.yml | ||
|
|
||
| - script: | | ||
| echo "##vso[build.addbuildtag]Scheduled" | ||
| displayName: 'Tag scheduled builds' | ||
| condition: and(eq(variables['Build.SourceBranchName'], variables['DefaultBranch']), eq(variables['Build.Reason'],'Schedule')) | ||
|
|
||
| - task: UsePythonVersion@0 | ||
| displayName: 'Use Python $(PythonVersion)' | ||
| inputs: | ||
| versionSpec: $(PythonVersion) | ||
|
|
||
| - script: | | ||
| python -m pip install setuptools==58.3.0 | ||
| python -m pip install -r eng/ci_tools.txt | ||
| displayName: 'Prep Environment' | ||
|
|
||
| - template: set-dev-build.yml | ||
| parameters: | ||
| ServiceDirectory: ${{ parameters.ServiceDirectory }} | ||
|
|
||
| - ${{if eq(variables['System.TeamProject'], 'internal') }}: | ||
| - template: auth-dev-feed.yml | ||
| parameters: | ||
| DevFeedName: ${{ parameters.DevFeedName }} | ||
|
|
||
| - task: PythonScript@0 | ||
| displayName: 'Generate Docs' | ||
| condition: and(succeededOrFailed(), ${{parameters.BuildDocs}}) | ||
| inputs: | ||
| scriptPath: 'scripts/devops_tasks/setup_execute_tests.py' | ||
| arguments: >- | ||
| "$(TargetingString)" | ||
| --service="${{ parameters.ServiceDirectory }}" | ||
| --toxenv=sphinx | ||
|
|
||
| - pwsh: | | ||
| Write-Host "##vso[task.setvariable variable=PIP_INDEX_URL]https://pypi.python.org/simple" | ||
| displayName: Reset PIP Index For APIStubGen | ||
|
|
||
| - template: /eng/pipelines/templates/steps/run_apistub.yml | ||
| parameters: | ||
| ServiceDirectory: ${{ parameters.ServiceDirectory }} | ||
|
|
||
| - ${{ parameters.BeforePublishSteps }} | ||
|
|
||
| - template: /eng/common/pipelines/templates/steps/publish-artifact.yml | ||
| parameters: | ||
| ArtifactPath: '$(Build.ArtifactStagingDirectory)' | ||
| ArtifactName: 'packages_extended' | ||
scbedd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - template: /eng/common/pipelines/templates/steps/publish-artifact.yml | ||
| parameters: | ||
| ArtifactPath: '$(Build.SourcesDirectory)/_docs' | ||
| CustomCondition: ${{ parameters.BuildDocs }} | ||
| ArtifactName: 'documentation' | ||
|
|
||
| - ${{if eq(variables['System.TeamProject'], 'internal') }}: | ||
| - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 | ||
| displayName: 'Generate BOM' | ||
| condition: succeededOrFailed() | ||
| inputs: | ||
| BuildDropPath: $(Build.ArtifactStagingDirectory) | ||
|
|
||
| - template: /eng/common/pipelines/templates/steps/publish-artifact.yml | ||
| parameters: | ||
| ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest' | ||
| ArtifactName: 'extended_manifest' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.