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

Jenkins Blue Ocean won't show Agent when creating a Pipeline

XMLWordPrintable

      I'm new to Blue Ocean, and I'm following the tutorial which tells me to run:

      docker run \
      --rm \
      -u root \
      -p 8080:8080 \
      -v jenkins-data:/var/jenkins_home \
      -v /var/run/docker.sock:/var/run/docker.sock \
      -v "$HOME":/home \
      jenkinsci/blueocean

      It fired up the docker instance, I got to the Blue Ocean screen, Clicked on create a new pipeline, set the GitHub token, Etc.

      Update: this also happens when running Jenkins from java directly on my laptop, and installing Ocean Blue plugin:

      java -jar jenkins.war --httpPort=8080

      Now I'm at the part where you select the Agent, but mine has no agent:

      Moreover, if I click the save button and then "save & run" it gets stuck and the docker container output throws:

      WARNING: Error while serving http://localhost:8080/blue/rest/pipeline-metadata/agentMetadata
      java.lang.reflect.InvocationTargetException
      ... <stack trace here> ...
      
      Caused by: java.lang.NoSuchMethodError: org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgentDescriptor.all()Lhudson/ExtensionList;
      

       
      I posted this problem on Stack Overflow but somebody said this might be a new bug. Hope this report helps.

       

        1. Screen Shot 2018-04-13 at 7.13.25 PM.png
          Screen Shot 2018-04-13 at 7.13.25 PM.png
          93 kB
        2. Screen Shot 2018-04-13 at 7.13.25 PM.png
          Screen Shot 2018-04-13 at 7.13.25 PM.png
          42 kB
        3. screenshot-1.png
          screenshot-1.png
          444 kB
        4. screenshot-2.png
          screenshot-2.png
          287 kB
        5. screenshot-3.png
          screenshot-3.png
          622 kB
        6. screenshot-4.png
          screenshot-4.png
          473 kB
        7. screenshot-5.png
          screenshot-5.png
          581 kB
        8. screenshot-6.png
          screenshot-6.png
          634 kB
        9. screenshot-7.png
          screenshot-7.png
          549 kB
        10. screenshot-8.png
          screenshot-8.png
          294 kB

            Unassigned Unassigned
            reijis2 Christopher Francisco
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: