Skip to content

[Bug]: harness.io/project-url has to end with / or the plugin doesn't work #70

Description

@OrkoHunter

Expected Behavior

If I set a harness.io/project-url like https://app.harness.io/ng/#/account/accountID/cd/orgs/orgId/projects/projectId it should work.

Actual behavior

Plugin says no pipelines found.

Possible Implementation

https://github.com/harness/backstage-plugins/blob/666d1e859bf393d910361f6d6b347a8455527924/plugins/harness-ci-cd/src/components/ExecutionList/useProjectSlugEntity.tsx#LL16C50-L16C58

This regex should be updated. It expects a trailing /.

Either we append a trailing / when parsing the annotation ourselves in code. Or we update the regex to ignore the /.

cc @SarvJ1 @sarthakkasat @Debanitrkl @sandeepa-kv-jois

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions