Re: Jenkins v2.15 with Git plugin v2.5.2

2016-08-01 Thread Antonio Hernandez
Hi again, 

Because of i'm thinking it's a git problem, i'm coding something like this 
before start git job:
for file in **/*
do
  if [ -f "$file" ];then
cd $file
git rm -r --cached .
git reset --soft HEAD^
git checkout origin/DEV
git branch -a
#rm -rfv *
cd ..
  fi
done

but i'm having this error:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Someone in the same situation??


El viernes, 29 de julio de 2016, 14:32:20 (UTC+2), Antonio Hernandez 
escribió:
>
> Hi mark
> i've got the same thing, the parameters doesn't have apparently nothing to 
> be with that issue
> Thanks anyway
>
>
>
> El viernes, 29 de julio de 2016, 14:18:46 (UTC+2), Mark Waite escribió:
>>
>> Have you considered copying that job into two jobs, one that builds the 
>> DEV branch, and one that builds the parameterized branch?
>>
>> On Friday, July 29, 2016 at 12:58:24 AM UTC-6, Antonio Hernandez wrote:
>>>
>>> Hi there,
>>> I'm living a nightmare because Git plugin behaviour. I have a proyect 
>>> with mutiple SCMs with the following configuration:
>>>
>>>
>>> 
>>>
>>>
>>> so, it's setted to build  a war in a subdirectory called "war" getting 
>>> the source code as default from DEV or from a parameter "BRANCH" but i'm 
>>> having this instead :
>>>
>>>
>>>
>>>
>>> 
>>>
>>>
>>> All of them have the same parameter "DEV" but it can see the first one, 
>>> by it's own, its building another different branch i setted.
>>>
>>> Also, there is the console output:
>>>
>>>
>>>
>>> 
>>>
>>>
>>> I'm desperate, any help would be helpful
>>>
>>>
>>> Thanks in advance
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8c34be12-76eb-41ab-99a4-b797627d6e4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins v2.15 with Git plugin v2.5.2

2016-07-29 Thread Antonio Hernandez
Hi mark
i've got the same thing, the parameters doesn't have apparently nothing to 
be with that issue
Thanks anyway



El viernes, 29 de julio de 2016, 14:18:46 (UTC+2), Mark Waite escribió:
>
> Have you considered copying that job into two jobs, one that builds the 
> DEV branch, and one that builds the parameterized branch?
>
> On Friday, July 29, 2016 at 12:58:24 AM UTC-6, Antonio Hernandez wrote:
>>
>> Hi there,
>> I'm living a nightmare because Git plugin behaviour. I have a proyect 
>> with mutiple SCMs with the following configuration:
>>
>>
>> 
>>
>>
>> so, it's setted to build  a war in a subdirectory called "war" getting 
>> the source code as default from DEV or from a parameter "BRANCH" but i'm 
>> having this instead :
>>
>>
>>
>>
>> 
>>
>>
>> All of them have the same parameter "DEV" but it can see the first one, 
>> by it's own, its building another different branch i setted.
>>
>> Also, there is the console output:
>>
>>
>>
>> 
>>
>>
>> I'm desperate, any help would be helpful
>>
>>
>> Thanks in advance
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/859b777f-7a76-4544-94a3-755ede3f6747%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins v2.15 with Git plugin v2.5.2

2016-07-29 Thread Mark Waite
Have you considered copying that job into two jobs, one that builds the DEV 
branch, and one that builds the parameterized branch?

On Friday, July 29, 2016 at 12:58:24 AM UTC-6, Antonio Hernandez wrote:
>
> Hi there,
> I'm living a nightmare because Git plugin behaviour. I have a proyect with 
> mutiple SCMs with the following configuration:
>
>
> 
>
>
> so, it's setted to build  a war in a subdirectory called "war" getting the 
> source code as default from DEV or from a parameter "BRANCH" but i'm having 
> this instead :
>
>
>
>
> 
>
>
> All of them have the same parameter "DEV" but it can see the first one, by 
> it's own, its building another different branch i setted.
>
> Also, there is the console output:
>
>
>
> 
>
>
> I'm desperate, any help would be helpful
>
>
> Thanks in advance
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1decd2e5-c54f-4dcb-9757-7e5c31c889f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins v2.15 with Git plugin v2.5.2

2016-07-29 Thread Antonio Hernandez
Hi there,
I'm living a nightmare because Git plugin behaviour. I have a proyect with 
mutiple SCMs with the following configuration:




so, it's setted to build  a war in a subdirectory called "war" getting the 
source code as default from DEV or from a parameter "BRANCH" but i'm having 
this instead :






All of them have the same parameter "DEV" but it can see the first one, by 
it's own, its building another different branch i setted.

Also, there is the console output:





I'm desperate, any help would be helpful


Thanks in advance



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3661dc05-6493-4656-892a-00586923b1a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.