alefragnani / vscode-jenkins-status

Jenkins Status Extension for Visual Studio Code
MIT License
27 stars 20 forks source link

Monitor job depending on git branch name #33

Closed st-schneider closed 3 years ago

st-schneider commented 5 years ago

It would be nice if the job would be dynamically picked by the current branch name for the status.

alefragnani commented 5 years ago

Hi @bm-stschneider ,

Could you elaborate/provide examples?

I mean, the current monitoring is based on the exact url defined in .jenkins file. There is no connection to folder name, workspace name or git repository name. To use the branch name, I think you are saying it would replace/add pieces of that URL. Is that what you mean?

Thank you

st-schneider commented 5 years ago

Yes, there might not be a .jenkins file at all. But a common use case is to have jenkins build every branch on a repo for example. So lets say you have a repo A and someone pushes branch feature/supercool-1. Jenkins will create a job/project for that branch and build it immediately. In this scenario it would be cool if there would be a status flag for the remote tracked branch of the current checked out branch to see if it fails on any part of the standard build process.

LennyPenny commented 4 years ago

I think #16 would solve this

st-schneider commented 4 years ago

In the meantime, we abandoned jenkins :P

alefragnani commented 4 years ago

Hi @bm-stschneider,

As I commented here I’m on similar situation. Most of our CI has moved to GitLab. That’s one of the reasons the extension is not being updated so frequently.

In this comment the PR author shows how you could use dynamic imports to solve this, if anyone is interested, until this feature lands on newer releases. Or, as a start, for a new PR 😁 .

alefragnani commented 3 years ago

I'm closing this feature request because it didn’t receive enough upvotes from the community. Still a big Thank You to you for taking the time to create this issue!

Thanks for your understanding