manager.setBuildNumber() does not seem to do anything

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

XMLWordPrintable

      Simple Jenkinsfile:

       

      if (manager.setBuildNumber(1)) {
        echo "Current build: ${manager.build.number}"
        manager.createSummary("gear2.gif").appendText("<h2>Testing</h2>", false)
      }
      

       

      Output:

      [Pipeline] echo
      Current build: 3
      [Pipeline] End of Pipeline

      3 is the current build number so this number changes on every build and the createSummary() is added to the current build instead of build number 1 (not what I expect).

      Expected behaviour is to see build number 1 being set and the summary being added to build number 1.

            Assignee:
            Stefan Wolf
            Reporter:
            Gonzalo Servat
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: