I think I've got it.
I should have used EnvironmentContributor.java as used in 
https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/BranchNameContributor.java#L56

An I right?

if so, what is the difference between 'EnvironmentContributor.java' 
and 'EnvironmentContributingAction.java'?
When should I use  EnvironmentContributor and when should I use 
EnvironmentContributingAction?

Thanks in advance,
Tzach

On Saturday 10 August 2024 at 15:32:11 UTC+3 tzach....@gmail.com wrote:

> Reviving this old thread as I got a bit of time to try to fix this bug... 
> (Can you please help approve/disapprove my comment below?)
>
> 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 with 
> *source.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.
>
> Is that correct?
>
> Thanks,
> Tzach
>
> On Wed, Jul 26, 2023 at 12:27 AM 'Jesse Glick' via Jenkins Developers <
> jenkin...@googlegroups.com> wrote:
>
>> On Tue, Jul 25, 2023 at 2:24 AM tzach solomon <tzach....@gmail.com> 
>> wrote:
>>
>>> get build from the Queue Item
>>>
>>
>> I am not sure what that means. You are going to need to be more specific, 
>> preferably with code references, ideally a JenkinsRule-based test failing 
>> in the “right” way.
>>
>> -- 
>>
> 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
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1%2B6wVKuRED8CmKXwp6aoj-UZnwiyohoSUce%3Dcr0ymJMg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/3018edfd-d498-4b1e-9961-c638c48f6762n%40googlegroups.com.

Reply via email to