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:
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user