Skip to content

Remove all CG template from pipelines #24193

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 2 commits into from
Mar 27, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,4 @@ jobs:
pathtoPublish: '$(Build.SourcesDirectory)/Artifact'
artifactName: 'result-$(Build.BuildNumber)'

- template: templates/component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'

- template: templates/clean-agent-build-directory-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,4 @@ steps:
node -p "require('onnxruntime-node')"
workingDirectory: '$(Build.BinariesDirectory)/e2e_test'

- template: ../../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'always'

- template: ../../templates/clean-agent-build-directory-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,3 @@ stages:
inputs:
targetPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.sln_platform }}'
artifactName: 'drop-onnxruntime-nodejs-win-${{ parameters.sln_platform }}-dml'

- template: ../../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,4 @@ stages:
IsReleaseBuild: $(IsReleaseBuild)
PACKAGENAME: ${{ parameters.NugetPackageName }}

- template: ../../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'always'

- template: ../../templates/clean-agent-build-directory-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,4 @@ stages:
DisableMlOps: $(DisableMlOps)
IsReleaseBuild: $(IsReleaseBuild)

- template: ../../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'always'

- template: ../../templates/clean-agent-build-directory-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,4 @@ stages:
env:
PACKAGENAME: ${{ parameters.NugetPackageName }}
- template: ../../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'always'

- template: ../../templates/clean-agent-build-directory-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,4 @@ stages:
displayName: 'Publish Pipeline Java Tools Artifact'
inputs:
targetPath: '$(Agent.TempDirectory)/java-tools'
artifact: 'onnxruntime-java-tools'

- template: ../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
artifact: 'onnxruntime-java-tools'
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ stages:
path: '$(Build.ArtifactStagingDirectory)'
artifact: 'onnxruntime-java-gpu'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- job: Final_Jar_Testing_Windows_GPU
dependsOn:
Jar_Packaging_GPU
Expand Down Expand Up @@ -127,10 +124,6 @@ stages:
popd
java -DUSE_CUDA=1 -jar junit-platform-console-standalone-1.6.2.jar -cp .;.\test;protobuf-java-3.21.7.jar;onnxruntime_gpu-$(OnnxRuntimeVersion).jar --scan-class-path --fail-if-no-tests --disable-banner
workingDirectory: '$(Build.BinariesDirectory)\final-jar'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- job: Final_Jar_Testing_Linux_GPU
dependsOn:
Jar_Packaging_GPU
Expand Down Expand Up @@ -182,7 +175,3 @@ stages:
onnxruntimeubi8packagestest \
/bin/bash /onnxruntime_src/tools/ci_build/github/linux/java_linux_final_test.sh -r /build -v $(OnnxRuntimeVersion)
displayName: 'Test'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,3 @@ jobs:
targetType: filePath
filePath: tools/ci_build/github/linux/run_python_dockertest.sh
arguments: -d GPU -c ${{parameters.cmake_build_type}} -i onnxruntimecuda${{ replace(parameters.CudaVersion, '.', '') }}xtrt86buildx86_64 -u 12.2
- template: ../../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ stages:
msbuildArguments: '-t:Clean -p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=Microsoft.ML.OnnxRuntime.Gpu'
workingDirectory: '$(Build.SourcesDirectory)\csharp'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'

- task: 1ES.PublishPipelineArtifact@1
displayName: 'Publish Pipeline NuGet Artifact'
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ stages:
artifactNameNoVersionString: 'onnxruntime-linux-x64-cuda'
libraryName: 'libonnxruntime.so.$(OnnxRuntimeVersion)'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- template: ../templates/clean-agent-build-directory-step.yml
# Linux CUDA with TensorRT Packaging
- job: Linux_C_API_Packaging_TensorRT
Expand Down Expand Up @@ -130,10 +127,6 @@ stages:
artifactNameNoVersionString: 'onnxruntime-linux-x64-tensorrt'
libraryName: 'libonnxruntime.so.$(OnnxRuntimeVersion)'


- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- template: ../templates/clean-agent-build-directory-step.yml
# Linux CUDA Combined Testing and Publishing
- stage: Linux_Packaging_combined_CUDA
Expand Down Expand Up @@ -230,6 +223,3 @@ stages:
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'onnxruntime-linux-x64-gpu'
- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,3 @@ stages:
inputs:
artifactName: 'onnxruntime-win-x64-gpu'
targetPath: '$(Build.ArtifactStagingDirectory)'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,4 @@ stages:
displayName: 'Publish Pipeline NuGet Artifact'
inputs:
artifactName: 'drop-signed-nuget-dml'
targetPath: '$(Build.ArtifactStagingDirectory)'
- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
targetPath: '$(Build.ArtifactStagingDirectory)'
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ stages:
workingDirectory: '$(Build.BinariesDirectory)\${{ parameters.cmake_build_type }}\${{ parameters.cmake_build_type }}'
displayName: 'Run Python Tests'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'


- ${{ if eq(parameters.enable_mac_cpu, true) }}:
- stage: Python_Packaging_MacOS
dependsOn: []
Expand Down Expand Up @@ -260,11 +255,6 @@ stages:
artifactName: onnxruntime-macos-$(PythonVersion)
targetPath: '$(Build.ArtifactStagingDirectory)'

- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'


- ${{ if eq(parameters.enable_linux_arm, true) }}:
- stage: Python_Packaging_Linux_ARM
dependsOn: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ stages:
echo "##vso[task.setvariable variable=BuildTime;isOutput=true]$hhmm"
displayName: 'Set Start Time as Variable'
name: Set_Build_Time
- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'

- stage: Debug
dependsOn: Setup
Expand All @@ -59,6 +56,3 @@ stages:
- bash: echo $(MyVar)
- bash: echo $(BuildTime)
- bash: echo $(BuildDate)
- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,3 @@ jobs:
env:
BROWSERSTACK_ID: $(browserstack_username)
BROWSERSTACK_TOKEN: $(browserstack_access_key)

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
16 changes: 4 additions & 12 deletions tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ stages:
targetPath: '$(Build.BinariesDirectory)/artifacts'
artifactName: 'onnxruntime-ios-full-xcframework'

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'


- template: win-ci.yml
parameters:
Expand Down Expand Up @@ -289,9 +287,7 @@ stages:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'onnxruntime-java'

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'


- stage: NuGet_Packaging_CPU
dependsOn:
Expand Down Expand Up @@ -505,9 +501,7 @@ stages:
msbuildArguments: '-t:Clean -p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId)'
workingDirectory: '$(Build.SourcesDirectory)\csharp'

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'



- stage: Nodejs_Packaging
Expand Down Expand Up @@ -774,9 +768,7 @@ stages:
artifactName: 'NPM_packages'
targetPath: '$(Build.ArtifactStagingDirectory)'

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'



- template: ../nuget/templates/test_win.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,3 @@ jobs:
arch: '${{parameters.OnnxruntimeNodejsBindingArch}}'
os: 'linux'
artifactName: 'drop-onnxruntime-nodejs-linux-${{parameters.OnnxruntimeArch}}'

- ${{ if not(eq(parameters.OnnxruntimeNodejsBindingArch, 'arm64')) }}:
- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ steps:
testRunTitle: 'Unit Test Run'
condition: succeededOrFailed()

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'


- script: |
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ steps:
testRunTitle: 'Unit Test Run'
condition: succeededOrFailed()

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'

- script: docker system df && docker system prune -a -f && docker system df
displayName: Clean docker images
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,5 @@ stages:
- ${{ if eq(parameters['OS'], 'MacOS') }}:
- template: use-xcode-version.yml

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'


Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,3 @@ jobs:
searchFolder: '$(Build.BinariesDirectory)'
testRunTitle: 'Unit Test Run'
condition: and(succeededOrFailed(), eq('${{ parameters.BuildConfig }}', 'Debug'))
- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,4 @@ stages:
artifactName: 'onnxruntime-osx'
condition: 'succeededOrFailed()'

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'

Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ stages:
msbuildArguments: '-t:Clean -p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId)'
workingDirectory: '$(Build.SourcesDirectory)\csharp'

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'


- template: ../nuget/templates/test_win.yml
parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,4 @@ stages:
publishVstsFeed: '2692857e-05ef-43b4-ba9c-ccf1c22c437c/7982ae20-ed19-4a35-a362-a96ac99897b7'
allowPackageConflicts: true

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'

Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,3 @@ jobs:
targetPath: '$(Build.BinariesDirectory)/dist'
artifactName: onnxruntime-linux-qnn-x64

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
3 changes: 0 additions & 3 deletions tools/ci_build/github/azure-pipelines/templates/py-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,3 @@ jobs:



- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,3 @@ jobs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'

- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Loading
Loading