Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve Jenkins queue status [improvements] #34

Closed
ddimitrioglo opened this issue Feb 6, 2018 · 9 comments
Closed

Retrieve Jenkins queue status [improvements] #34

ddimitrioglo opened this issue Feb 6, 2018 · 9 comments

Comments

@ddimitrioglo
Copy link

ddimitrioglo commented Feb 6, 2018

Since 1.24 data.triggerResults returns queue info - and it's great, but if my Jenkins job is already in progress it would be cool also get queue status pending, started otherwise.

@ddimitrioglo ddimitrioglo changed the title Retrieve correct Jenkins queue status [improvements] Retrieve Jenkins queue status [improvements] Feb 6, 2018
@tomasbjerre
Copy link
Contributor

I'm pretty sure that is asynchronous. I think it is always pending immediately after it is triggered. But perhaps 20ms after triggered it is started.

@ddimitrioglo
Copy link
Author

ddimitrioglo commented Feb 6, 2018

If I'm not wrong there is blocked property in queueInfo object which is true when queued and false when started

@ghost
Copy link

ghost commented May 14, 2018

is there a way to trigger the build in jenkins through webhook for particular branch commit in github ?

@ddimitrioglo
Copy link
Author

Hi @forpix ,

I achieved it by adding a "post content variable" like:
image
and then just filtered all the requests like this:
image

Hope it will help you ;)

@ghost
Copy link

ghost commented May 15, 2018

Thanks for the response I will try it and get back to you @ddimitrioglo

@ghost
Copy link

ghost commented May 15, 2018

@ddimitrioglo ,
Im having a scenario like this,
I have a job in a Jenkins which configured to trigger with web-hook in GitHub. In GitHub I'm having 3 branches called 'working' , 'developed', and final one 'master', if I commit to develop branch the build got triggered and now I have merged the committed file to master from developed now again Jenkins triggered the job(which don't have any chages in files apart from merging) with merged commit.
so how to restrict this ....., I tried out solution but its not restrict the job only for developed branch.

@ddimitrioglo
Copy link
Author

@forpix I'm a bit confused...
If you make some changes in working branch and open a PR from working => developed, then merge PR, how could happen that you are opening a PR from developed => master and there is no changes just merged commit?

What I'm missing here?

@ghost
Copy link

ghost commented May 15, 2018 via email

@ddimitrioglo
Copy link
Author

Ok, I see the flow now.
Have you configured as I've proposed you?

In your case you just have to change ^(dev|test|stage|master)$ => ^Working$ this will trigger ONLY PRs to Working branch, everything else will be skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants