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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ async function prepareSourceCode(
language: string,
artifactDir: string
) {
const gitOperationWrapper: GitOperationWrapper = new GitOperationWrapper();
for (const p of generateAndBuildOutput.packages) {
const packageName = p.packageName;
const packagePaths = p.path;
Expand All @@ -53,6 +52,8 @@ async function prepareSourceCode(
}

if (fs.lstatSync(packagePath).isDirectory()) {
const gitOperationWrapper: GitOperationWrapper = new GitOperationWrapper(packagePath);

for (const filePath of await gitOperationWrapper.getFileListInPackageFolder(packagePath)) {
copyFile(
`${path.join(packagePath, filePath)}`,
Expand Down
12 changes: 1 addition & 11 deletions tools/sdk-generation-pipeline/pipelines/steps/precheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,5 @@ steps:

- bash: |
echo "##vso[task.setvariable variable=sdkRepoUrl;]https://github.com/$(SDK_OWNER)/azure-sdk-for-${{parameters.sdk}}.git"
if [ ${{parameters.sdk}} = "js" ]; then
echo "##vso[task.setvariable variable=sdkMainBranch;]js-dpg"
elif [ ${{parameters.sdk}} = "net" ]; then
echo "##vso[task.setvariable variable=sdkMainBranch;]yc/dpgauto"
elif [ ${{parameters.sdk}} = "python" ]; then
echo "##vso[task.setvariable variable=sdkMainBranch;]dpg-readme-sdkGeneration"
elif [ ${{parameters.sdk}} = "java" ]; then
echo "##vso[task.setvariable variable=sdkMainBranch;]dpg-readme-codegen"
else
echo "##vso[task.setvariable variable=sdkMainBranch;]$(sdkRepoBaseBranch)"
fi
echo "##vso[task.setvariable variable=sdkMainBranch;]$(sdkRepoBaseBranch)"
displayName: Set sdk repo