Есть ли способ помешать jenkins- git делать всю эту ерунду? - PullRequest
0 голосов
/ 20 июня 2020

Вот что он делает:

15:20:06 Building remotely on el7b2 (el7) in workspace /home/workspace/project
15:20:06  > git rev-parse --is-inside-work-tree # timeout=10
15:20:06 Fetching changes from the remote Git repository
15:20:06  > git config remote.origin.url http://git/repo # timeout=10
15:20:06 Fetching upstream changes from http://git/repo
15:20:06  > git --version # timeout=10
15:20:06 using GIT_ASKPASS to set credentials 
15:20:06  > git fetch --tags --progress http://git/repo +refs/heads/*:refs/remotes/origin/*
15:20:06  > git rev-parse refs/remotes/origin/git-build^{commit} # timeout=10
15:20:06  > git rev-parse refs/remotes/origin/origin/git-build^{commit} # timeout=10
15:20:06 Checking out Revision 138220e2377272ba80d59a9ce4306faf26c7e827 (refs/remotes/origin/git-build)
15:20:06  > git config core.sparsecheckout # timeout=10
15:20:06  > git checkout -f 138220e2377272ba80d59a9ce4306faf26c7e827
15:20:06 Commit message: "a"
15:20:06  > git rev-list --no-walk b5529f8e113eec98cbb4fea33664b4a676f80307 # timeout=10

правда, я просто хочу, чтобы он делал git fetch origin branch && git checkout -B branch origin/branch. выполняемая им команда git checkout -f <Ref> затрагивает целую кучу файлов в моем репо, что заставляет мой процесс сборки перестраивать все. как мне перестать это делать?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...