Skip to content

Commit 134c975

Browse files
committed
Disable running prebuilds without a project
1 parent 753a24b commit 134c975

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
@@ -126,6 +126,11 @@ export class PrebuildManager {
126126
if (user.blocked) {
127127
throw new Error(`Blocked users cannot start prebuilds (${user.name})`);
128128
}
129+
if (!project) {
130+
throw new Error(
131+
`Running prebuilds without a project is no longer supported. Please add '${cloneURL}' as a project in a Gitpod team.`,
132+
);
133+
}
129134
const existingPB = await this.findNonFailedPrebuiltWorkspace({ span }, cloneURL, commitSHAIdentifier);
130135

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

0 commit comments

Comments
 (0)