Skip to content

Commit

Permalink
Remove DummyJenkinsInfoProvider
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
  • Loading branch information
ashirley authored and benjdlambert committed Jul 14, 2021
1 parent 17b493a commit 41dab29
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
9 changes: 0 additions & 9 deletions plugins/jenkins-backend/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ export class DefaultJenkinsInfoProvider implements JenkinsInfoProvider {
static readonly OLD_JENKINS_ANNOTATION = "jenkins.io/github-folder";
}

// @public (undocumented)
export class DummyJenkinsInfoProvider implements JenkinsInfoProvider {
// (undocumented)
getInstance(_: {
entityRef: EntityName;
jobName?: string;
}): Promise<JenkinsInfo>;
}

// @public (undocumented)
export interface JenkinsInfo {
// (undocumented)
Expand Down
5 changes: 1 addition & 4 deletions plugins/jenkins-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@ export type {
JenkinsInfo,
JenkinsInfoProvider,
} from './service/jenkinsInfoProvider';
export {
DummyJenkinsInfoProvider,
DefaultJenkinsInfoProvider,
} from './service/jenkinsInfoProvider';
export { DefaultJenkinsInfoProvider } from './service/jenkinsInfoProvider';
16 changes: 0 additions & 16 deletions plugins/jenkins-backend/src/service/jenkinsInfoProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,6 @@ export interface JenkinsInfo {
jobName: string; // TODO: make this an array
}

export class DummyJenkinsInfoProvider implements JenkinsInfoProvider {
async getInstance(_: {
entityRef: EntityName;
jobName?: string;
}): Promise<JenkinsInfo> {
return {
baseUrl: 'https://jenkins.internal.example.com/',
headers: {
Authorization:
'Basic YWRtaW46MTFlYzI1NmU0Mzg1MDFjM2Y1Yzc2Yjc1MWE3ZTQ3YWY4Mw==',
},
jobName: 'department-A/team-1/project-foo',
};
}
}

/**
* Use default config and annotations.
*
Expand Down

0 comments on commit 41dab29

Please sign in to comment.