MCMicS / jenkins-control-plugin

Jenkins integration in IDEA Platforms
https://plugins.jetbrains.com/plugin/6110-jenkins-control-plugin
Apache License 2.0
249 stars 123 forks source link

Support loading of selective projects #340

Open mailsanchu opened 2 years ago

mailsanchu commented 2 years ago

We have 3000 plus and loading jenkins is never completed. Can we have an option to load a single project

MCMicS commented 2 years ago

You can create a view and load the view only.

Or what is your your project structure?

Can you provide a image of your project view

mailsanchu commented 2 years ago

We do not have access to the server to create a view as I said it is a huge organization.

mailsanchu commented 2 years ago

Is this you are looking for?

mailsanchu commented 2 years ago

image

mailsanchu commented 2 years ago

Another problem is downloading all the jobs with VPN :)

MCMicS commented 2 years ago

Thanks for image but i mean list of jenkins view.

What is the problem with VPN. Do you get an error.

If you cannot view all jobs it is also possible to create favorite jobs to see and use the the favorite jobs view. This is locally on IDE. But for this you have to load all jobs once and the mark single projets as favorite

you said that loading never complete. Do you get an error or something else? Normally it should load and return in some time or timeout which can be configured.

I take a look for some improvements but this depende mostly on infrastrucure setups.

Is your server available for testing? Can you grant me acces to the jenkins server for tests?

Could you try following curl command how long it will take to return

curl -v https://jenkins-url.com/api/json
mailsanchu commented 2 years ago

No error and it just hangs

mailsanchu commented 2 years ago

curl -v https://jenkins-url.com/api/json returns quickly. I cannot give access because I don't have the authority to do it :)

mailsanchu commented 2 years ago

image

mailsanchu commented 2 years ago

It stays like this ^^

MCMicS commented 2 years ago

I try to reproduce it the days But as said it takes some time because normally it works in my test setups.

I try also to add another way to choose load selected jobs. Maybe I add an create favorite Jobs view to select jobs to load

Have you the possibilities to try following pre release version as test?

mailsanchu commented 2 years ago

I can test that part. Job structure is like this https://egjenkins-he.dtveng.net/job/CS_hollow-consumer/

mailsanchu commented 2 years ago

image

MCMicS commented 2 years ago

How many jenkins multibranch jobs are existing in your jenkins instance.

in screenshot I see that there are many (151) branches

So i guess there are about 30 Multibranch pipeline jobs with each 151 branches?

May be this is one of problem because I try to load info for each branch. I check to reduce the calls

mailsanchu commented 2 years ago

There will be more than 3000 jobs ( my guess) and 100+ branches per job.We don't delete release branches. That is why we need to load per project(or job)

MCMicS commented 2 years ago

Ok I take a look at this

mailsanchu commented 2 years ago

Thank you very much

MCMicS commented 2 years ago

I'm still invastigating this issue but it will take still some days

Sorry for that

mailsanchu commented 2 years ago

No, bother. Take your time