ExportXMLWordPrintable

      We cannot pull from Bitbucket with Bitbucket Branch Source Plugin Version937.3.3 during the brownout even after create an API Token. We are able to log directly pull from the same repository with the username and API token via CLI during brownout. 

       

      Error 
      The recommended git tool is: NONE
      using credential rave_bitbucket_jnks
      Fetching changes from the remote Git repository
      Cleaning workspace
      Pruning obsolete local branches
      Pruning obsolete local tags that do not exist on remotes
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from [https://bitbucket.org/safran3151/data-store-server.git]	at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:998)
      	at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1239)
      	at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1310)
      	at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1277)
      	at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
      	at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
      	at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
      	at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:49)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.base/java.lang.Thread.run(Unknown Source)
      Caused by: hudson.plugins.git.GitException: Command "git ls-remote -t -- [https://bitbucket.org/safran3151/data-store-server.git]" returned status code 128:
      stdout: 
      stderr: remote: CHANGE-3222 - Functionality has been deprecated
      remote: App passwords are deprecated and must be replaced with API tokens.
      remote: [https://developer.atlassian.com/cloud/bitbucket/changelog#CHANGE-3222]fatal: unable to access '[https://bitbucket.org/safran3151/data-store-server.git/]': The requested URL returned error: 410
      
      	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2852)
      	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2193)
      	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2083)
      	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2074)
      	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3810)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:986)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:961)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:907)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:225)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:391)
      	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
      	at java.base/java.lang.Thread.run(Thread.java:1583)
      	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to dev-jkns-hwm16
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1916)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:384)
      		at hudson.remoting.Channel.call(Channel.java:1108)
      		at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:306)
      		at PluginClassLoader for git-client/jdk.proxy102/jdk.proxy102.$Proxy189.getRemoteReferences(Unknown Source)
      		at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl.getRemoteReferences(RemoteGitImpl.java:662)
      		at PluginClassLoader for git//hudson.plugins.git.extensions.impl.PruneStaleTag.decorateFetchCommand(PruneStaleTag.java:113)
      		at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:994)
      		at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1239)
      		at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1310)
      		at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1277)
      		at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
      		at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
      		at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
      		at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:49)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      		at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      		at java.base/java.lang.Thread.run(Unknown Source)
      ERROR: Error fetching remote repo 'origin'
      ERROR: Maximum checkout retry attempts reached, aborting[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: Error fetching remote repo 'origin'
      [Bitbucket] Notifying commit build result > git rev-parse --resolve-git-dir /home/builder/workspace/SPI_data-store-server_develop/.git # timeout=10
       > git config remote.origin.url [https://bitbucket.org/safran3151/data-store-server.git] # timeout=10
       > git rev-parse --verify HEAD # timeout=10
      Resetting working tree
       > git reset --hard # timeout=10
       > git clean -ffdx # timeout=10
       > git show-ref --tags -d # timeout=10
       > git --version # timeout=10
       > git --version # 'git version 2.25.1'
      using GIT_ASKPASS to set credentials User API token for rave_bitbucket_jnks
       > git ls-remote -t -- [https://bitbucket.org/safran3151/data-store-server.git] # timeout=10[Bitbucket] Build result notified
      Finished: FAILURE

      CLI

       

      aruiz@jmpbx-devops-lnx:~/repo$ git clone https://rave_bitbucket_jnks@bitbucket.org/safran3151/qmlravead.git
      Cloning into 'qmlravead'...
      Password for 'https://rave_bitbucket_jnks@bitbucket.org':
      Receiving objects: 100% (518/518), 7.94 MiB | 8.24 MiB/s, done.
      Resolving deltas: 100% (217/217), done.
      

       

            Assignee:
            Nikolas Falco
            Reporter:
            Arlo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: