Сбои Jenkins Blue Ocean на GitHub 'git checkout -b branch-name' с кодом состояния 128: - PullRequest
1 голос
/ 15 марта 2019

после обучения YT Приступая к работе с визуальным редактором конвейеров Blue Ocean , я изо всех сил пытаюсь продолжить работу после второго раунда модификации моего Jenkinsfile с использованием BO Visual Editor.

Когда я нажимаю кнопку «Сохранить и запустить», конвейер Jenkins BO запускается, но завершается с этим:

GitHub has been notified of this commit’s build result  

hudson.plugins.git.GitException: Command "git checkout -b blue-ocean-editor 9c164f507fa831c33d44d83e1f458ec50b433f40" returned status code 128:

stdout: 

stderr: fatal: A branch named 'blue-ocean-editor' already exists

Если вы посмотрите на мое репо и конкретный коммит (ы) Дженкинс смог создать ветку 'blue-ocean-editor' в моем первоначальном коммите (вызванном новым конвейером BO) и также нажмите следующий коммит «Расширить мой трубопровод Blue Ocean», поэтому я сомневаюсь, что у моего Дженкинса не будут правильные учетные данные, как обсуждено здесь .

Однако есть некоторые тайм-ауты. Не уверен, сколько это беспокоит. В любом случае, вот полный вывод моего конвейера BO:

Branch indexing

Connecting to https://api.github.com using zxxxy/****** (GitHub Access Token)

Obtained Jenkinsfile from 9c164f507fa831c33d44d83e1f458ec50b433f40

Running in Durability level: MAX_SURVIVABILITY

[Pipeline] Start of Pipeline

[Pipeline] node

Running on Jenkins in /var/lib/jenkins/jobs/HelloWorldProject/branches/blue-ocean-editor/workspace

[Pipeline] {

[Pipeline] stage

[Pipeline] { (Declarative: Checkout SCM)

[Pipeline] checkout

using credential github

 > git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

 > git config remote.origin.url https://github.com/delphym/HelloWorldProject.git # timeout=10

Cleaning workspace

 > git rev-parse --verify HEAD # timeout=10

Resetting working tree

 > git reset --hard # timeout=10

 > git clean -fdx # timeout=10

Fetching without tags

Fetching upstream changes from https://github.com/delphym/HelloWorldProject.git

 > git --version # timeout=10

using GIT_ASKPASS to set credentials GitHub Access Token

 > git fetch --no-tags --progress https://github.com/delphym/HelloWorldProject.git +refs/heads/blue-ocean-editor:refs/remotes/origin/blue-ocean-editor # timeout=10

Checking out Revision 9c164f507fa831c33d44d83e1f458ec50b433f40 (blue-ocean-editor)

 > git config core.sparsecheckout # timeout=10

 > git checkout -f 9c164f507fa831c33d44d83e1f458ec50b433f40 # timeout=10

 > git branch -a -v --no-abbrev # timeout=10

 > git checkout -b blue-ocean-editor 9c164f507fa831c33d44d83e1f458ec50b433f40 # timeout=10

[Pipeline] }

[Pipeline] // stage

[Pipeline] }

[Pipeline] // node

[Pipeline] End of Pipeline

[BFA] Scanning build for known causes...

[BFA] No failure causes found

[BFA] Done. 0s



GitHub has been notified of this commit’s build result



hudson.plugins.git.GitException: Command "git checkout -b blue-ocean-editor 9c164f507fa831c33d44d83e1f458ec50b433f40" returned status code 128:

stdout: 

stderr: fatal: A branch named 'blue-ocean-editor' already exists.



    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2318)

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$900(CliGitAPIImpl.java:81)

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2627)

Caused: hudson.plugins.git.GitException: Could not checkout blue-ocean-editor with start point 9c164f507fa831c33d44d83e1f458ec50b433f40

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2649)

    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1228)

    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)

    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)

    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)

    at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at java.lang.Thread.run(Thread.java:748)

Finished: FAILURE

Интересно, что я могу делать не так? Я полагаю, что у меня есть достаточно современные Jenkins и все плагины и ОС, но вкратце: ОС: Ubuntu Trusty 14.04.6 LTS Дженкинс: Дженкинс вер. 2.161 (немного позади, но я хочу перейти на стабильные релизы) Плагины: Blue Ocean 1.13.2

...