<div dir="ltr">Do you have this in your conf.ini file?<div>query_plugins_info=False<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 14, 2017 at 8:53 AM, Dusty Mabe <span dir="ltr"><<a href="mailto:dusty@dustymabe.com" target="_blank">dusty@dustymabe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I'm using python3-jenkins-job-builder-1.<wbr>4.0-7.fc25.noarch.rpm on fedora<br>
and I can't update jobs. I can authenticate just fine with my password<br>
in the config ini file, but I get a 403 forbidden. I have tried this<br>
with both the python3 and python2 version. The below errors are from<br>
the python 2 version:<br>
<br>
$ jenkins-jobs --conf jenkins_jobs.ini test project.yaml<br>
/usr/lib/python2.7/site-<wbr>packages/jenkins/__init__.py:<wbr>529: DeprecationWarning: get_plugins_info() is deprecated, use get_plugins()<br>
  DeprecationWarning)<br>
Traceback (most recent call last):<br>
  File "/guests/sharedfolder/code/<a href="http://github.com/projectatomic/adb-tests/cdrage-atomicapp-ci/centos-ci-jjb/foo/usr/bin/jenkins-jobs" rel="noreferrer" target="_blank">git<wbr>hub.com/projectatomic/adb-<wbr>tests/cdrage-atomicapp-ci/<wbr>centos-ci-jjb/foo/usr/bin/<wbr>jenkins-jobs</a>", line 10, in <module><br>
    sys.exit(main())<br>
  File "/usr/lib/python2.7/site-<wbr>packages/jenkins_jobs/cmd.py", line 171, in main<br>
    execute(options, config)<br>
  File "/usr/lib/python2.7/site-<wbr>packages/jenkins_jobs/cmd.py", line 337, in execute<br>
    output=options.output_dir)<br>
  File "/usr/lib/python2.7/site-<wbr>packages/jenkins_jobs/builder.<wbr>py", line 314, in update_job<br>
    self.load_files(input_fn)<br>
  File "/usr/lib/python2.7/site-<wbr>packages/jenkins_jobs/builder.<wbr>py", line 224, in load_files<br>
    self.parser = YamlParser(self.global_config, self.plugins_list)<br>
  File "/usr/lib/python2.7/site-<wbr>packages/jenkins_jobs/builder.<wbr>py", line 220, in plugins_list<br>
    self._plugins_list = self.jenkins.get_plugins_info(<wbr>)<br>
  File "/usr/lib/python2.7/site-<wbr>packages/jenkins_jobs/builder.<wbr>py", line 184, in get_plugins_info<br>
    raise e<br>
jenkins.JenkinsException: Error in request. Possibly authentication failed [403]: Forbidden<br>
INFO:jenkins_jobs.builder:<wbr>Cache saved<br>
<br>
<br>
Note that if I run the "test" without the `--conf jenkins_jobs.ini`,<br>
the test passes as it is just validating the yaml.<br>
<br>
I don't think this is an auth issue either because if I put the wrong<br>
password in the file then I get `Invalid password/token for user:`<br>
error.<br>
<br>
Can someone confirm they can run jenkins_jobs to update a job? One way<br>
to do this is run through the `Your Next Job: Jenkins Job Builder` example<br>
I posted a long time ago:<br>
<br>
<a href="http://dustymabe.com/2016/01/23/the-centos-ci-infrastructure-a-getting-started-guide/" rel="noreferrer" target="_blank">http://dustymabe.com/2016/01/<wbr>23/the-centos-ci-<wbr>infrastructure-a-getting-<wbr>started-guide/</a><br>
<br>
Thanks for any help!<br>
Dusty<br>
______________________________<wbr>_________________<br>
Ci-users mailing list<br>
<a href="mailto:Ci-users@centos.org">Ci-users@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/ci-users" rel="noreferrer" target="_blank">https://lists.centos.org/<wbr>mailman/listinfo/ci-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-== @ri ==-</div></div>
</div>