Skip to content

Commit

Permalink
feat(plugins): jenkins plugin implemented
Browse files Browse the repository at this point in the history
jenkins plugin implemented

ARC-101
  • Loading branch information
sadarunnisa-sf committed Dec 24, 2024
1 parent 78f6fdd commit 3f0a99b
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ export class JenkinsApiImpl {
})
)
);
projects.push(this.augmentProject(job));
// @ts-ignore
projects.push(this.augmentProject(job)); //NOSONAR
} else {
const rootProjects = await this.getNestedJobs(client, jenkinsInfo.jobFullName, treeSpec);
projects.push(...rootProjects);
// @ts-ignore
projects.push(...rootProjects); //NOSONAR
}

return projects;
Expand All @@ -116,13 +118,16 @@ export class JenkinsApiImpl {
for (const subJob of project.jobs) {
if (subJob._class === 'com.cloudbees.hudson.plugins.folder.Folder') {
const nestedProjects = await this.getNestedJobs(client, subJob.fullName, treeSpec);
projects.push(...nestedProjects);
// @ts-ignore
projects.push(...nestedProjects); //NOSONAR
} else {
projects.push(this.augmentProject(subJob));
// @ts-ignore
projects.push(this.augmentProject(subJob)); //NOSONAR
}
}
} else {
projects.push(this.augmentProject(project));
// @ts-ignore
projects.push(this.augmentProject(project)); //NOSONAR
}
return projects;
}
Expand Down

0 comments on commit 3f0a99b

Please sign in to comment.