Skip to content

Commit f8d3bde

Browse files
committed
Disable running prebuilds without a project
1 parent 0bfd9b0 commit f8d3bde

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/gitpod-protocol/src/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ export interface WithCommitHistory {
11271127

11281128
export interface StartPrebuildContext extends WorkspaceContext, WithCommitHistory {
11291129
actual: WorkspaceContext;
1130-
project?: Project;
1130+
project: Project;
11311131
branch?: string;
11321132
}
11331133

components/server/ee/src/prebuilds/prebuild-manager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ export class PrebuildManager {
128128
if (user.blocked) {
129129
throw new Error(`Blocked users cannot start prebuilds (${user.name})`);
130130
}
131+
if (!project) {
132+
throw new Error(
133+
`Running prebuilds without a project is no longer supported. Please add '${cloneURL}' as a project in a Gitpod team.`,
134+
);
135+
}
131136
const existingPB = await this.findNonFailedPrebuiltWorkspace({ span }, cloneURL, commitSHAIdentifier);
132137

133138
// If the existing prebuild is failed, it will be retriggered in the afterwards

0 commit comments

Comments
 (0)