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

Jenkins - Update Jobs for Jenkins instance hosted on Docker Container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • jobcopy-builder-plugin
    • None
    • Development

      root@80a2a980842e:/var/lib/jenkins# jenkins-jobs update jobs
      INFO:jenkins_jobs.cli.subcommand.update:Updating jobs in ['jobs'] ([])
      INFO:jenkins_jobs.builder:Number of jobs generated: 1
      Traceback (most recent call last):
      File "/usr/local/bin/jenkins-jobs", line 11, in <module>
      sys.exit(main())
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/entry.py", line 165, in main
      jjb.execute()
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/entry.py", line 146, in execute
      ext.obj.execute(self.options, self.jjb_config)
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cli/subcommand/update.py", line 146, in execute
      existing_only=options.existing_only)
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 324, in update_jobs
      concurrent=p_params)
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/parallel.py", line 112, in concurrentized
      return func(*args, **kwargs)
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 347, in parallel_update_job
      self.update_job(job.name, job.output().decode('utf-8'))
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 128, in update_job
      if self.is_job(job_name):
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 139, in is_job
      if job_name in self.job_list:
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 105, in job_list
      self._job_list = set(job['fullname'] for job in self.jobs)
      File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 97, in jobs
      self._jobs = self.jenkins.get_all_jobs()
      File "/usr/local/lib/python2.7/dist-packages/jenkins/_init_.py", line 1027, in get_all_jobs
      jobs = [(0, [], self.get_info(query=jobs_query)['jobs'])]
      File "/usr/local/lib/python2.7/dist-packages/jenkins/_init_.py", line 780, in get_info
      % self.server)
      jenkins.BadHTTPException: Error communicating with serverhttp://18.218.234.92:8080/jenkins/

            debangshuk Debangshu Kundu
            debangshuk Debangshu Kundu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: