Skip to content

Commit

Permalink
feat: add build id
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Jul 16, 2024
1 parent 3c6f894 commit 0cf826e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class GetProjectRecordsService {
buildProvider: coverage.buildProvider,
buildURL:
coverage.buildProvider === 'mpaas'
? `${process.env.MPASS_URL}?filters=%7B%22env%22%3A%22%22%2C%22pipelineId%22%3A%22%22%2C%22buildId%22%3A%22${coverage.buildID}%22%2C%22branch%22%3A%22%22%2C%22versionNames%22%3A%5B%5D%2C%22creator%22%3A%22%22%2C%22effectVersion%22%3Afalse%7D`
? `${process.env.MPAAS_URL}?appId=${coverage.buildID.split('|')[0]}&module=${coverage.buildID.split('|')[1]}&filters={buildId:${coverage.buildID.split('|')[2]}}`
: `${process.env.GITLAB_URL}/${project.pathWithNamespace}/-/jobs/${coverage.buildID}`,
};
rows.push(data);
Expand Down
7 changes: 7 additions & 0 deletions packages/canyon-platform/public/gitproviders/mpaas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const ProjectOverviewPage = () => {
{record.buildID !== '-' ? (
<a href={record.buildURL} target={'_blank'}>
<img
className={'w-[16px]'}
src={`/gitproviders/${record.buildProvider === '-' ? 'gitlab' : record.buildProvider}.svg`}
alt=''
/>
Expand Down

0 comments on commit 0cf826e

Please sign in to comment.