Jenkins v2.15 with Git plugin v2.5.2

52 views
Skip to first unread message

Antonio Hernandez

unread,
Jul 29, 2016, 2:58:24 AM7/29/16
to Jenkins Users
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



Mark Waite

unread,
Jul 29, 2016, 8:18:46 AM7/29/16
to Jenkins Users
Have you considered copying that job into two jobs, one that builds the DEV branch, and one that builds the parameterized branch?

Antonio Hernandez

unread,
Jul 29, 2016, 8:32:20 AM7/29/16
to Jenkins Users
Hi mark
i've got the same thing, the parameters doesn't have apparently nothing to be with that issue
Thanks anyway

Antonio Hernandez

unread,
Aug 1, 2016, 4:05:03 AM8/1/16
to Jenkins Users
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??
Reply all
Reply to author
Forward
0 new messages