Jobs created by doCreateItem start with build #0

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      If you create a job through the web UI, the first build is #1. If you post
      config.xml to /createItem?name=..., the first build is #0.

      Debugger confirms that when Job.onLoad is run, nextBuildNumber==0, despite

      protected transient volatile int nextBuildNumber = 1;

      Some XStream magic I suppose.

            Assignee:
            Unassigned
            Reporter:
            Jesse Glick
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: