Re: bitbucket plugin - JENKINS-65697 - How to inject environment variable into WorkflowMultiBranchProject (buildEnvironment isn't called...)

2023-07-25 Thread 'Jesse Glick' via Jenkins Developers
On Tue, Jul 25, 2023 at 2:24 AM tzach solomon 
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-dev+unsubscr...@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.


Re: bitbucket plugin - JENKINS-65697 - How to inject environment variable into WorkflowMultiBranchProject (buildEnvironment isn't called...)

2023-07-25 Thread tzach solomon
Thanks Jesse for the quick response.

Is there a guide to understand how I can get build from the Queue Item I
have?

On Mon, Jul 24, 2023 at 4:25 PM 'Jesse Glick' via Jenkins Developers <
jenkinsci-dev@googlegroups.com> wrote:

> On Mon, Jul 24, 2023 at 1:58 AM tzach solomon 
> wrote:
>
>> 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 EnvironmentContributingAction*
>>
>> My problem is that the *buildEnvironment* method isn't called.
>>
>
> Nor should it be. That is an extension point for builds. You are
> discussing branch indexing. Maybe you are looking in the wrong place.
>
> --
> 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/CANfRfr1d4PqcO4LGmFrOhw%2B73DypfCvJE65QeMt9OMr4rKQ2ow%40mail.gmail.com
> 
> .
>

-- 
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/CAC19wgL1OA0wVymHR8SahGrr0iNkjBxqnx1JKd3hQPSsJLsajw%40mail.gmail.com.


Re: bitbucket plugin - JENKINS-65697 - How to inject environment variable into WorkflowMultiBranchProject (buildEnvironment isn't called...)

2023-07-24 Thread 'Jesse Glick' via Jenkins Developers
On Mon, Jul 24, 2023 at 1:58 AM tzach solomon 
wrote:

> 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 EnvironmentContributingAction*
>
> My problem is that the *buildEnvironment* method isn't called.
>

Nor should it be. That is an extension point for builds. You are discussing
branch indexing. Maybe you are looking in the wrong place.

-- 
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/CANfRfr1d4PqcO4LGmFrOhw%2B73DypfCvJE65QeMt9OMr4rKQ2ow%40mail.gmail.com.


bitbucket plugin - JENKINS-65697 - How to inject environment variable into WorkflowMultiBranchProject (buildEnvironment isn't called...)

2023-07-23 Thread tzach solomon
Hi All,

Sorry for the long title but I'm really at lost here...

I'm the maintainer of the bitbucket plugin
 and I would like to solve
JENKINS-65697 .
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 EnvironmentContributingAction*

My problem is that the *buildEnvironment* method isn't called.

What am I doing wrong?

Thanks in advance,
Tzach

-- 
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/CAC19wgLfRA%3DVrEqVZJogbEMqPjMWko2es0Rw4po-WpErp%3DNhVA%40mail.gmail.com.