code: @SuppressWarnings({"UnusedDeclaration"})
      public void doSubmit(StaplerRequest req, StaplerResponse resp) throws IOException, ServletException {
          // Enforce release permissions
          project.checkPermission(ArtifactoryPlugin.RELEASE);
          readRequestParams(req, false);
          // Schedule release build
          if (project.scheduleBuild(0, new Cause.UserIdCause(), this)) {
              // Redirect to the project page
              resp.sendRedirect(project.getAbsoluteUrl());
          }
      }
docs: Form submission is calling this method