fix(vcs): fix deployments stuck at processing
Ensure project is passed in the event because the init hook isn't able to detect the project. Make sure the build is triggered for each function. Reset the build event so the shutdown hook doesn't trigger again.
This commit is contained in:
parent
6a795f4d7a
commit
47fddbe8e5
|
@ -238,11 +238,16 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId
|
|||
$queueForBuilds
|
||||
->setType(BUILD_TYPE_DEPLOYMENT)
|
||||
->setResource($function)
|
||||
->setDeployment($deployment);
|
||||
->setDeployment($deployment)
|
||||
->setProject($project); // set the project because it won't be set for git deployments
|
||||
|
||||
$queueForBuilds->trigger(); // must trigger here so that we create a build for each function
|
||||
|
||||
//TODO: Add event?
|
||||
}
|
||||
}
|
||||
|
||||
$queueForBuilds->setType(''); // prevent shutdown hook from triggering again
|
||||
};
|
||||
|
||||
App::get('/v1/vcs/github/authorize')
|
||||
|
|
Loading…
Reference in a new issue