<div class="zcontentRow"> <p>Hi mihailmed,</p><p><br></p><p>Thanks for your reply.</p><p>Your answer is exactly what i want.</p><p>You're right, <span style="line-height: 21px;">I just setup the jenkins node for test and</span> do not need to use the jobs defined in project-config.</p><p><br></p><p>BR,</p><p>dwj</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><div><div class="zhistoryRow" style="display:block"><div class="zhistoryDes" style="width: 100%; height: 28px; line-height: 28px; background-color: #E0E5E9; color: #1388FF; text-align: center;" language-data="HistoryOrgTxt">原始邮件</div><div id="zwriteHistoryContainer"><div class="control-group zhistoryPanel"><div class="zhistoryHeader" style="padding: 8px; background-color: #F5F6F8;"><div><strong language-data="HistorySenderTxt">发件人:</strong><span class="zreadUserName"> <mihailmed@gmail.com>;</span></div><div><strong language-data="HistoryTOTxt">收件人:</strong><span class="zreadUserName" style="display: inline-block;">董文娟00101742;</span></div><div><strong language-data="HistoryCCTxt">抄送人:</strong><span class="zreadUserName" style="display: inline-block;"> <openstack-infra@lists.openstack.org>;</span></div><div><strong language-data="HistoryDateTxt">日 期 :</strong><span class="">2017年05月04日 23:07</span></div><div><strong language-data="HistorySubjectTxt">主 题 :</strong><span class="zreadTitle"><strong>Re: [OpenStack-Infra] [openstack-infra] [jenkins-job-builder] run`jenkins-jobs test` failed</strong></span></div></div><p class="zhistoryContent"><br></p><div>On Thu, May 4, 2017 at 4:56 AM,  <dong.wenjuan@zte.com.cn> wrote:<br>><br>> Hi folks,<br>><br>> I use "puppet-jenkins" to setuped a jenkins node, and then run the command<br>> `jenkins-jobs test /etc/jenkins_jobs/config/`<br>><br>> to parser the jobs which are from the "project-config/jenkins/jobs".<br>><br>> But it raised a error, here is the log:<br>><br>> Does anyone know how to resolve the issue? Do I need to install some tools?<br>><br>> Thanks for help~<br>><br>><br>> INFO:jenkins_jobs.local_yaml:Including file 'include/run-project-guide.sh'<br>> from path '.'<br>><br>> WARNING:root:logrotate is deprecated on jenkins>=1.637, use the property<br>> build-discarder on newer jenkins instead<br>><br>> Traceback (most recent call last):<br>><br>>   File "/usr/local/bin/jenkins-jobs", line 10, in <module><br>><br>>     sys.exit(main())<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cmd.py", line<br>> 191, in main<br>><br>>     execute(options, config)<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cmd.py", line<br>> 380, in execute<br>><br>>     n_workers=1)<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py",<br>> line 350, in update_jobs<br>><br>>     self.parser.generateXML()<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/parser.py", line<br>> 342, in generateXML<br>><br>>     self.xml_jobs.append(self.getXMLForJob(job))<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/parser.py", line<br>> 352, in getXMLForJob<br>><br>>     self.gen_xml(xml, data)<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/parser.py", line<br>> 359, in gen_xml<br>><br>>     module.gen_xml(self, xml, data)<br>><br>>   File<br>> "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/modules/publishers.py",<br>> line 6158, in gen_xml<br>><br>>     self.registry.dispatch('publisher', parser, publishers, action)<br>><br>>   File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/registry.py",<br>> line 249, in dispatch<br>><br>>     format(name, component_type))<br>><br>> jenkins_jobs.errors.JenkinsJobsException: Unknown entry point or macro 'afs'<br>> for component type: 'publisher'.<br>><br><br>The problem is exactly what it says it is - jjb can not find a<br>publisher macro named 'afs'. If you look into project-config/tox.ini<br>'s testenv:jjb section, you'll see that it does 'pip install -U<br>jenkins/modules/jjb_afs', which I assume installs the missing macro.<br>So you can either install that missing macro, or you can remove all<br>uses of the macro from you configuration.<br><br>A more important question is why you want to use<br>project-config/jenkins jobs as is for your deployment of Jenknis? It<br>is a configuration specific to OpenStack Infra. You would be better<br>off starting with a small subset of jobs you are interested in using.<br><br>---<br>Mikhail Medvedev (mmedvede)Now there is another question<br>IBM<br></div><p><br></p></div></div></div></div><p><br></p> </div>