Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43546

Facing problem when integrating Blue Ocean with Bitbucket

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Jenkins Docker
    • Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2

      My problem is occurring when I am trying to integrate Blue Ocean with Bitbucket. I have a repository where I have a Dockerfile for my project. I am trying to run a build using the Dockerfile but I am unable to do so as Blue Ocean gives me the error "You don't have any branches that contain a Jenkinsfile". Although, I have a jenkins file in my repository as well which looks similar to

      Jenkinsfile (Declarative Pipeline)

       

      pipeline\{
      
         agent any
      
         stages \{
      
            stage('Build') \{
      
               steps \{
      
                   cd Docker
      
                   docker build -t dockerselenium .
      
              }
      
          }
      
        }
      
      }
      

       

      Steps taken to create a pipeline using Blue Ocean

      1. Select GIT in the first step as I am using bitbucket.
      2. Enter the repo url in the format of 'https://<username>@bitbucket.org/<username>/<project>/<reponame>.git'
      3. Enter username and password as I am using HTTPS to connect to bitbucket.
      4. Add credential to Blue Ocean by clicking on the 'ADD' button.
      5. Click on the button 'Create a pipeline'.

      After these steps are completed it gives me an error saying 'You don't have any branches that contain a Jenkinsfile'.

      I also tried to check the configuration of the task created in jenkins. This is the log which I get after the execution of 'MultiBranch Pipeline' scan is completed.

      Started by user
      
      [Soumyajit Basu|http://localhost:8080/user/corefinder88]
      
      [Wed Apr 12 22:21:44 IST 2017] Starting branch indexing... > git rev-parse --is-inside-work-tree # timeout=10 Setting origin to
      
      [https://sbasuhoverr@bitbucket.org/hoverr/dockersetup.git]
      
      > git config remote.origin.url
      
      [https://sbasuhoverr@bitbucket.org/hoverr/dockersetup.git]
       # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 using GIT_ASKPASS to set credentials > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* ERROR: Timeout after 10 minutes
      
      [ERROR|http://stacktrace.jenkins-ci.org/search?query=ERROR]
      
      : [Wed Apr 12 22:41:44 IST 2017] Could not update folder level actions from source e597234e-f5b8-45f7-a4e0-9fea5fcfd1df
      
      [hudson.plugins.git.GitException|http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException]
      
      : Command "git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*" returned status code 143: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1799) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1525) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:65) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:316) at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:222) at jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:390) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:691) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:585) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:405) [Wed Apr 12 22:41:44 IST 2017] Finished branch indexing. Indexing took 10 min FATAL: Failed to recompute children of dockersetup
      
      [hudson.plugins.git.GitException|http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException]
      
      : Command "git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*" returned status code 143: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1799) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1525) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:65) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:316) at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:222) at jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:390) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:691) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:585) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:405)
      
      Finished: FAILURE
      

            jamesdumay James Dumay
            corefinder89 Soumyajit Basu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: