Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30802

enhance buildable status job operations

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            integer Kanstantsin Shautsou created issue -
            integer Kanstantsin Shautsou made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-29792 [ JENKINS-29792 ]
            integer Kanstantsin Shautsou made changes -
            Description Core contains internal not obvious for end-users mechanism with job states: buildable/not buildable.
            IMHO it makes sense :
            # Show not buildable status in UI and provide button for activations
            # create job activation method because many actions are hidden under UI submission (obviously .activate() method then will be binded to activate button.
            Core contains internal not obvious for end-users mechanism with job states: buildable/not buildable.
            IMHO it makes sense :
            # Show not buildable status in UI and provide button for activations
            # create job activation method because many actions are hidden under UI submission (obviously .activate() method that will be bind to activate button.
            integer Kanstantsin Shautsou made changes -
            Link This issue is blocking JENKINS-30745 [ JENKINS-30745 ]
            yakobe 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

            yakobe 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
            yakobe 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)

            yakobe 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 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 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
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165929 ] JNJira + In-Review [ 182209 ]

            People

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

              Dates

                Created:
                Updated: