Skip to content

Commit 9cfb2d7

Browse files
committed
Merged PR 6245: FIX: Build Pipeline - List signed files
#### AI description (iteration 1) #### PR Classification This pull request fixes the build pipeline by updating the code signing step to list signed files in a platform-specific manner. #### PR Summary The update refines the YAML step to separate Windows and Linux/macOS file listing commands, ensuring proper output and compatibility for the Python Driver migration to 1ES. - `OneBranchPipelines/steps/compound-esrp-code-signing-step.yml`: Replaced a single script block with two conditional blocks that use cmd commands for Windows and bash for Linux/macOS. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot --> Related work items: #38066
1 parent f896b68 commit 9cfb2d7

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

OneBranchPipelines/steps/compound-esrp-code-signing-step.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,23 @@ steps:
151151
}
152152
]
153153
154-
- script: |
155-
echo "Signed files in: ${{ parameters.signPath }}"
156-
if [ -d "${{ parameters.signPath }}" ]; then
157-
find "${{ parameters.signPath }}" -type f \( -name "*.whl" -o -name "*.pyd" -o -name "*.dll" -o -name "*.so" -o -name "*.dylib" \) -ls
158-
else
159-
dir /s "${{ parameters.signPath }}"
160-
fi
161-
displayName: 'List signed files'
162-
condition: succeededOrFailed()
154+
# List signed files (platform-specific)
155+
- ${{ if eq(parameters.artifactType, 'dll') }}:
156+
# Windows - use cmd syntax
157+
- script: |
158+
echo Signed files in: ${{ parameters.signPath }}
159+
dir /s /b "${{ parameters.signPath }}\*.whl" "${{ parameters.signPath }}\*.pyd" "${{ parameters.signPath }}\*.dll" 2>nul
160+
displayName: 'List signed files (Windows)'
161+
condition: succeededOrFailed()
162+
163+
- ${{ else }}:
164+
# Linux/macOS - use bash syntax
165+
- bash: |
166+
echo "Signed files in: ${{ parameters.signPath }}"
167+
if [ -d "${{ parameters.signPath }}" ]; then
168+
find "${{ parameters.signPath }}" -type f \( -name "*.whl" -o -name "*.pyd" -o -name "*.dll" -o -name "*.so" -o -name "*.dylib" \) -ls
169+
else
170+
echo "Directory not found: ${{ parameters.signPath }}"
171+
fi
172+
displayName: 'List signed files (Linux/macOS)'
173+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)