Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Fixing bug - Azure pipeline with GH repo (#200)
Browse files Browse the repository at this point in the history
* Added GitHub Workflow YAML definition.

* path fixes

* del file

* adding comment

Co-authored-by: Kanika Pasrija <[email protected]>
Co-authored-by: Kanika Pasrija <[email protected]>
  • Loading branch information
3 people authored Dec 15, 2020
1 parent 5bb7570 commit 771e2ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/configure/configurers/azurePipelineConfigurer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ export class AzurePipelineConfigurer implements Configurer {
}

public async getPathToPipelineFile(inputs: WizardInputs, localGitRepoHelper: LocalGitRepoHelper): Promise<string> {
return path.join(inputs.sourceRepository.localPath, await LocalGitRepoHelper.GetAvailableFileName('azure-pipelines.yml', inputs.sourceRepository.localPath));
let rootDirectory = await localGitRepoHelper.getGitRootDirectory();
return path.join(rootDirectory, await LocalGitRepoHelper.GetAvailableFileName('azure-pipelines.yml', rootDirectory));
}

public async getPathToManifestFile(inputs: WizardInputs, localGitRepoHelper: LocalGitRepoHelper, fileName: string): Promise<string> { return null; }
Expand Down
4 changes: 2 additions & 2 deletions src/configure/helper/devOps/azureDevOpsHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class AzureDevOpsHelper {
},
process: {
type: 2,
yamlFileName: path.join(inputs.pipelineConfiguration.workingDirectory, path.basename(inputs.pipelineConfiguration.filePath))
yamlFileName: path.basename(inputs.pipelineConfiguration.filePath) // As required, it will be at the root location and should be same as committed pipeline file
},
queue: {
id: queueId // Default queue Hosted VS 2017. This value is overriden by queue specified in YAML
Expand Down Expand Up @@ -168,4 +168,4 @@ export class AzureDevOpsHelper {
sourceVersion: inputs.sourceRepository.commitId
};
}
}
}

0 comments on commit 771e2ad

Please sign in to comment.