Hi All, Pls bear with me for the lengthy post. I did go through the documentation (JJB) on how to create jobs of freestyle and pipeline style.
With JJB installed in an Ubuntu box (running in Vagrant), I could create simple freestyle jobs. However, the same is not the case with simple pipeline jobs. a) YAML code used to create pipeline job was based on the example in the section, “Pipeline as code” example", given here, https://docs.openstack.org/infra/jenkins-job-builder/project_pipeline.html - job: -job: name: JJB_OSFY project-type: pipeline sandbox: true pipeline-scm: scm: - git: url: https://github.com/mramanathan/OSFY.git clean: true script-path: Jenkinsfile b) And the command tried to create pipeline job. Example code was stored in pipdemo.yaml jenkins-jobs --conf server.ini update pipdemo.yaml c) Output from the command: ++++++++++++++ INFO:root:Updating jobs in ['pipdemo.yaml'] ([]) INFO:jenkins_jobs.builder:Number of jobs generated: 1 Traceback (most recent call last): File "/home/ubuntu/.local/bin/jenkins-jobs", line 11, in sys.exit(main()) File "/home/ubuntu/.local/lib/python2.7/site-packages/jenkins_jobs/cmd.py", line 191, in main execute(options, config) File "/home/ubuntu/.local/lib/python2.7/site-packages/jenkins_jobs/cmd.py", line 372, in execute n_workers=options.n_workers) File "/home/ubuntu/.local/lib/python2.7/site-packages/jenkins_jobs/builder.py", line 356, in update_jobs self.parser.xml_jobs.sort(key=operator.attrgetter('name')) AttributeError: 'NoneType' object has no attribute 'name' +++++++++++++++++ d) FWIW, freestyle jobs were created using the same server.ini. Any help would be appreciated. NOTE: Pls excuse me for posting this issue to this group. I did post it to JJB forum but haven't got any response until now, so, trying my luck here! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/47408acc-f2f6-4cd0-8d4e-4752a1d24cc3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.