#feature: Jenkins 构建入口与自动创建 release 分支

加入 crm-web/crm-opm 并可跳转 Jenkins 发布页;自动创建 release 时 commit 使用 release-版本号,并跳过本地 git hook,避免 agent-be 被拦下。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-14 09:14:57 +08:00
co-authored by Cursor
parent 103340536b
commit c45d68e201
7 changed files with 286 additions and 47 deletions
+11
View File
@@ -45,6 +45,17 @@ class JenkinsClient
return $this->request($this->getJobPath($jobName).'/lastBuild/api/json');
}
public function getJobUrl(string $jobName, ?int $buildNumber = null): ?string
{
if (empty($this->host) || trim($jobName) === '') {
return null;
}
$url = $this->host.$this->getJobPath($jobName).'/';
return $buildNumber ? $url.$buildNumber.'/' : $url;
}
public function getParameterDefinitions(string $jobName): array
{
$jobInfo = $this->getJobInfo($jobName);