2

New Job can be created using create_job() API and new view can be created using create_view() API. But how can I add the new job that is created to the new view?

I am referring to https://python-jenkins.readthedocs.io/en/latest/api.html

Geetha
  • 31
  • 4

2 Answers2

0

You need to update your view using reconfig_view() as described here

mvelay
  • 1,520
  • 1
  • 10
  • 23
  • Okay, Just wanted to check if there is anyother api available to add just the job to the view. Thanks! – Geetha May 10 '16 at 09:48
0

There is no direct method for creating a job in view. To add job in view is necessary get view XML and add job name in tag "string".