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

Support multiple jobs #43

Closed
midN opened this issue Nov 21, 2018 · 7 comments
Closed

Support multiple jobs #43

midN opened this issue Nov 21, 2018 · 7 comments

Comments

@midN
Copy link

midN commented Nov 21, 2018

Are there any plans to support multiple related jobs or jobs that initiate separate build for HEAD and MERGE?

Currently this plugin chooses a random Job and triggers only one.

@aaronjwhiteside
Copy link

aaronjwhiteside commented Jan 29, 2019

@midN can you please provide a sample Jenkinsfile that reproduces the problem?

@midN
Copy link
Author

midN commented Jan 29, 2019

@aaronjwhiteside Any Jenkinsfile will work, just make 2 separate jobs in Jenkins under same repo/webhook.

Webhook will fire both jobs in Jenkins, this plugin will fire first one it finds by the key -

@aaronjwhiteside
Copy link

So I'm having a little trouble following what you're doing to get this behaviour, do you have two github oranization jobs configured pointing to the same org, and thus two instances of the same job?

@midN
Copy link
Author

midN commented Feb 19, 2019

@aaronjwhiteside pic

Enable that and your PR will fire 2 jobs, one for HEAD and one for MERGE.
Now when you add a PR Trigger from given plugin and comment/fire it, it will run a random job chosen amongst HEAD and MERGE.
If your job has a specific features to be ran in HEAD or MERGE, you will need to spam that Trigger until it randomly select the job you need to.

aaronjwhiteside added a commit that referenced this issue Feb 22, 2019
@aaronjwhiteside
Copy link

@midN thanks for reporting the issue, it should be fixed in the next release!

@aaronjwhiteside
Copy link

2.4 has been released

@midN
Copy link
Author

midN commented Feb 22, 2019

@aaronjwhiteside thanks!

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