Hi,
I worked a bit using yetus and I saw that there is a variable
PATCH_BRANCH which
has the name of the branch you are currently running on.
Now if you can use an if statement on that variable you will be able to
change the version.

Other users correct me if I am wrong.

Hope that helps you.

S

-Suraj Acharya

On Thu, Oct 20, 2016 at 8:41 PM, Duo Zhang <[email protected]> wrote:

> The HBase community wants to drop the support of hadoop-2.4.x and
> hadoop-2.5.x in HBase-2.0. This means we need to use different hadoopcheck
> versions for master branches when running precommit job.
>
> Now the hadoopcheck is invoke in the hadoopcheck_rebuild function placed in
> the personality shell script of HBase.
>
> https://github.com/apache/hbase/blob/master/dev-support/
> hbase-personality.sh
>
> If we can get the branch name in this function, it is possible to use
> different hadoop versions for different branches. Will yetus send the
> branch name as a parameter when invoking this method? Or is there any env
> variable that specifics the branch we want to test? Or is it possible to
> run some git commands in this function(You know the problem is I do not
> know the path of the local git repo..)?
>
> Thanks.
>

Reply via email to