#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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user