• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      Core contains internal not obvious for end-users mechanism with job states: buildable/not buildable.
      IMHO it makes sense :

      1. Show not buildable status in UI and provide button for activations
      2. create job activation method because many actions are hidden under UI submission (obviously .activate() method that will be bind to activate button.

          [JENKINS-30802] enhance buildable status job operations

          jake bishop added a comment - - edited

          This buildable status is also somehow incosistently implemented. See JENKINS-30745. In particular the facts that

          It is possible to manually start the build [of an unbuildable job]. After the job has run the polling still does not work

          and

          if you restart jenkins. All those previously 'unbuildable' jobs suddenly become magically buildable and start running

          and

          [polling copied jobs] used to work but now it does not

          jake bishop added a comment - - edited This buildable status is also somehow incosistently implemented. See JENKINS-30745 . In particular the facts that It is possible to manually start the build [of an unbuildable job]. After the job has run the polling still does not work and if you restart jenkins. All those previously 'unbuildable' jobs suddenly become magically buildable and start running and [polling copied jobs] used to work but now it does not

          jake bishop added a comment -

          How can i activate a job using the rest API at the moment? I am able to copy a job but it is not activated and therefore polling does not work. I currently have to manually go to the UI and save the job to activate it. (by activate i do not mean enable/disable but set it to a buildable state)

          jake bishop added a comment - How can i activate a job using the rest API at the moment? I am able to copy a job but it is not activated and therefore polling does not work. I currently have to manually go to the UI and save the job to activate it. (by activate i do not mean enable/disable but set it to a buildable state)

          Oleg Nenashev added a comment -

          yakobe, there is no such REST API right now (It's a follow-up to JENKINS-30802). BTW you can do it via CLI, because it provides enable-job and disable-job commands

          Oleg Nenashev added a comment - yakobe , there is no such REST API right now (It's a follow-up to JENKINS-30802 ). BTW you can do it via CLI, because it provides enable-job and disable-job commands

            Unassigned Unassigned
            integer Kanstantsin Shautsou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: