I've checked the code and it looks like the triggered job is of class WorkflowMultiBranchProject. The future job I'm getting once scheduled OK is jenkins.branch.MultiBranchProject$BranchIndexing.I've tried to inject environment variables into it by using the already existing class BitBucketPayload which looks like this BitBucketPayload extends InvisibleAction implements EnvironmentContributingActionMy problem is that the buildEnvironment method isn't called.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1d4PqcO4LGmFrOhw%2B73DypfCvJE65QeMt9OMr4rKQ2ow%40mail.gmail.com.
get build from the Queue Item
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1%2B6wVKuRED8CmKXwp6aoj-UZnwiyohoSUce%3Dcr0ymJMg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3018edfd-d498-4b1e-9961-c638c48f6762n%40googlegroups.com.
I've tried to figure out why `buildEnvironment` is not called and it's because when scheduling a `WorkflowMultiBranchProject` (using schedule2) with my Actions, those actions will be ignored since the branch will always be triggered withsource.fetch(new SCMHeadObserverImpl(source, observer, listener, _factory, new IndexingCauseFactory(), null), listener);And that is why the console always has 'Branch indexing' and not my cause.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr07vCv3XLCkh6RobBMne41n1gq9EDDUzTnFWRJBo5oXaQ%40mail.gmail.com.
What is another option?