improve success and fail messages, re-generated api reports

Signed-off-by: Hasan Ozdemir <21654050+nodify-at@users.noreply.github.com>
This commit is contained in:
Hasan Ozdemir
2021-12-17 11:38:19 +01:00
parent bc3695fe7a
commit 047d92db5e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ export interface JenkinsApi {
entity: EntityName;
jobFullName: string;
buildNumber: string;
}): Promise<Response>;
}): Promise<void>;
}
// Warning: (ae-missing-release-tag) "jenkinsApiRef" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -117,7 +117,7 @@ export class JenkinsClient implements JenkinsApi {
entity: EntityName;
jobFullName: string;
buildNumber: string;
}): Promise<Response>;
}): Promise<void>;
}
// Warning: (ae-missing-release-tag) "jenkinsPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@@ -186,13 +186,13 @@ const generatedColumns: TableColumn[] = [
try {
await row.onRestartClick();
alertApi.post({
message: 'Jenkins re-build has been successfully executed',
message: 'Jenkins re-build has successfully executed',
severity: 'success',
});
} catch (e) {
if (e instanceof ResponseError) {
alertApi.post({
message: `Jenkins re-build has been failed. Error: ${e.message}`,
message: `Jenkins re-build has failed. Error: ${e.message}`,
severity: 'error',
});
}