devtron-labs / devtron

Tool integration platform for Kubernetes
https://devtron.ai
Apache License 2.0
4.32k stars 475 forks source link

Feature: Requirement for the "host url" value in the CI_CD_EVENT #5598

Open vishu247 opened 2 months ago

vishu247 commented 2 months ago

🔖 Feature description

Need the CI_CD_EVENT variable to include the host URL value so that this value can be used in our plugins, rather than requiring users to provide it manually. Currently, the host URL value is not available in pre-ci, post-ci, pre-cd, post-cd, and Devtron jobs.

🎤 Pitch / Usecases

Use Case: When creating a plugin, there is a need for the host URL to trigger the APIs. Instead of manually obtaining this URL from the user, if the host URL can be provided through the CI_CD_EVENT variable, it can be automatically retrieved from there, rather taking from user.

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

vishu247 commented 1 week ago

Verified with the developer that we only need the hostUrl in CI_CD_EVENT. Thanks, @RajeevRanjan27 ! I tested it, and it works fine with @deepak-devtron.