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:
>>>
>>>
>>> <https://lh3.googleusercontent.com/-rQyEMTeio5o/V5r5qzIftjI/AAAAAAAACE4/DKNdJJOgs9IVMwhR65fHPaxa5v_XuBWFQCLcB/s1600/ALL-IN-ONE_1.jpg>
>>>
>>>
>>> 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 :
>>>
>>>
>>>
>>>
>>> <https://lh3.googleusercontent.com/-iDBQ3UDe0-Y/V5r-W-TV63I/AAAAAAAACFY/qL10rSQP8s0vkffU6X_i_OFzOIihs8LjQCLcB/s1600/ALL-IN-ONE_2.jpg>
>>>
>>>
>>> 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:
>>>
>>>
>>>
>>> <https://lh3.googleusercontent.com/-hezIFT5OfaY/V5r9dI6iaeI/AAAAAAAACFQ/egds5ITBnsUruRiUwuJn35ZllxmF1-80ACLcB/s1600/ALL-IN-ONE_3.jpg>
>>>
>>>
>>> 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 [email protected].
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.