Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Job issue #848

Open
r8or0pz opened this issue Sep 6, 2023 · 1 comment
Open

Unknown Job issue #848

r8or0pz opened this issue Sep 6, 2023 · 1 comment

Comments

@r8or0pz
Copy link

r8or0pz commented Sep 6, 2023

ISSUE TYPE
  • Bug Report
Jenkinsapi VERSION

Latest

Jenkins VERSION

2.414.1

SUMMARY

I am facing jenkinsapi.custom_exceptions.UnknownJob: 'ScheduleScaleAllDBs' issue when I'm trying to access Jenkins Master by IP address. To solve this problem I'm using modified version of Requester class with Host header added, but the problem persists anyway. Also httplib cannot be installed because of this issue: Could not find a version that satisfies the requirement httplib (from versions: none).

How may I solve it?

EXPECTED RESULTS

No jenkinsapi.custom_exceptions.UnknownJob happening

ACTUAL RESULTS
Traceback (most recent call last):
  File "/opt/./main.py", line 19, in <module>
    ).main()
      ^^^^^^
  File "/opt/e2e_invoke/E2EInvoke.py", line 61, in main
    self.scale_out()
  File "/opt/e2e_invoke/E2EInvoke.py", line 97, in scale_out
    self.build_job(job_name=job_name, parameters=self.__get_parameters(job_name=job_name, action='scale_out'))
  File "/opt/e2e_invoke/E2EInvoke.py", line 107, in build_job
    self.jenkins_instance.build_job(job_name, parameters)
  File "/root/.local/share/virtualenvs/opt-zvmYt2-H/lib/python3.11/site-packages/jenkinsapi/jenkins.py", line 221, in build_job
    self[jobname].invoke(build_params=params or {})
    ~~~~^^^^^^^^^
  File "/root/.local/share/virtualenvs/opt-zvmYt2-H/lib/python3.11/site-packages/jenkinsapi/jenkins.py", line 287, in __getitem__
    return self.jobs[jobname]
           ~~~~~~~~~^^^^^^^^^
  File "/root/.local/share/virtualenvs/opt-zvmYt2-H/lib/python3.11/site-packages/jenkinsapi/jobs.py", line 91, in __getitem__
    raise UnknownJob(job_name)
jenkinsapi.custom_exceptions.UnknownJob: 'ScheduleScaleAllDBs'
@libo850
Copy link

libo850 commented Jan 24, 2024

I also have the same question, has this been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants