#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:
@@ -111,4 +111,22 @@ class JenkinsClientTest extends TestCase
|
||||
&& $request->url() === 'https://jenkins.example.com/queue/cancelItem?id=456';
|
||||
});
|
||||
}
|
||||
|
||||
public function test_get_job_url_builds_job_and_build_pages(): void
|
||||
{
|
||||
$client = app(JenkinsClient::class);
|
||||
|
||||
$this->assertSame(
|
||||
'https://jenkins.example.com/job/crm-dev-crm_web/',
|
||||
$client->getJobUrl('crm-dev-crm_web')
|
||||
);
|
||||
$this->assertSame(
|
||||
'https://jenkins.example.com/job/crm-dev-crm_web/42/',
|
||||
$client->getJobUrl('crm-dev-crm_web', 42)
|
||||
);
|
||||
$this->assertSame(
|
||||
'https://jenkins.example.com/job/folder/job/nested-job/',
|
||||
$client->getJobUrl('folder/nested-job')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user