Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit abae4ea

Browse files
mtarngbnookala
authored andcommitted
Adding logging for pipeline builds
1 parent ba71649 commit abae4ea

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/commands/hld/pipeline.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export const installHldToManifestPipeline = async (values: ICommandOptions) => {
137137
yamlFilePath: RENDER_HLD_PIPELINE_FILENAME
138138
} as IAzureRepoPipelineConfig);
139139

140+
logger.info(
141+
`Attempting to create new pipeline: ${values.pipelineName} defined in repository:${values.hldUrl}, branch: ${values.yamlFileBranch}, filePath: ${RENDER_HLD_PIPELINE_FILENAME}`
142+
);
143+
140144
try {
141145
builtDefinition = await createPipelineForDefinition(
142146
devopsClient as IBuildApi,

src/commands/project/pipeline.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ const createPipeline = async (
162162
yamlFilePath: PROJECT_PIPELINE_FILENAME // Pipeline definition lives in root directory.
163163
});
164164

165+
logger.info(
166+
`Attempting to create new pipeline: ${values.pipelineName} defined in repository:${values.repoUrl}, branch: ${values.yamlFileBranch}, filePath: ${PROJECT_PIPELINE_FILENAME}`
167+
);
168+
165169
try {
166170
return await createPipelineForDefinition(
167171
devopsClient,

src/commands/service/pipeline.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ export const installBuildUpdatePipeline = async (
125125
values.devopsProject
126126
}' with definition '${JSON.stringify(definition)}'`
127127
);
128+
129+
logger.info(
130+
`Attempting to create new pipeline: ${values.pipelineName} defined in repository:${values.repoUrl}, branch: ${values.yamlFileBranch}, filePath: ${yamlFilePath}`
131+
);
132+
128133
builtDefinition = await createPipelineForDefinition(
129134
devopsClient,
130135
values.devopsProject,

0 commit comments

Comments
 (0)