Remote API to create / delete / modify promotions for a job. Similar to the same API for jobs.

      The same - for Jenkins CLI.

          [JENKINS-8963] Remote API to create/delete/modify promotions

          Jesse Glick added a comment -

          No it really needs a config.xml, since this the promotion process is a distinct Job.

          Jesse Glick added a comment - No it really needs a config.xml , since this the promotion process is a distinct Job .

          eguess74 added a comment -

          Assigning to Kohsuke to give it a push.

          eguess74 added a comment - Assigning to Kohsuke to give it a push.

          Jacek Migdal added a comment -

          Just for motivation there is a 50$ bounty for that .

          Jacek Migdal added a comment - Just for motivation there is a 50$ bounty for that .

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
          src/test/java/hudson/plugins/promoted_builds/RemoteApiTest.java
          http://jenkins-ci.org/commit/promoted-builds-plugin/2ceec77c9c12a7a5940b338045c35e59aab797ce
          Log:
          JENKINS-8963 Verify baseline functionality of GET/POST config.xml; be sure to pick up ACL from parent project, not Jenkins root.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java src/test/java/hudson/plugins/promoted_builds/RemoteApiTest.java http://jenkins-ci.org/commit/promoted-builds-plugin/2ceec77c9c12a7a5940b338045c35e59aab797ce Log: JENKINS-8963 Verify baseline functionality of GET/POST config.xml; be sure to pick up ACL from parent project, not Jenkins root.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          pom.xml
          src/main/java/hudson/plugins/promoted_builds/JobPropertyImpl.java
          src/test/java/hudson/plugins/promoted_builds/RemoteApiTest.java
          http://jenkins-ci.org/commit/promoted-builds-plugin/ca0b5e516bb37e0b3000422c93d2cde05dc560b8
          Log:
          JENKINS-8963 Make existing REST API for deletion work naturally.

          Compare: https://github.com/jenkinsci/promoted-builds-plugin/compare/2ceec77c9c12...ca0b5e516bb3

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/hudson/plugins/promoted_builds/JobPropertyImpl.java src/test/java/hudson/plugins/promoted_builds/RemoteApiTest.java http://jenkins-ci.org/commit/promoted-builds-plugin/ca0b5e516bb37e0b3000422c93d2cde05dc560b8 Log: JENKINS-8963 Make existing REST API for deletion work naturally. Compare: https://github.com/jenkinsci/promoted-builds-plugin/compare/2ceec77c9c12...ca0b5e516bb3

          Jesse Glick added a comment -

          Not bothering with CLI commands, just doing REST API for now.

          Jesse Glick added a comment - Not bothering with CLI commands, just doing REST API for now.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/plugins/promoted_builds/JobPropertyImpl.java
          src/main/java/hudson/plugins/promoted_builds/PromotedProjectAction.java
          src/test/java/hudson/plugins/promoted_builds/RemoteApiTest.java
          http://jenkins-ci.org/commit/promoted-builds-plugin/98a79660b82648f21035c1359c7542bc99d2faef
          Log:
          [FIXED JENKINS-8963] Added REST API to create promotion processes.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/plugins/promoted_builds/JobPropertyImpl.java src/main/java/hudson/plugins/promoted_builds/PromotedProjectAction.java src/test/java/hudson/plugins/promoted_builds/RemoteApiTest.java http://jenkins-ci.org/commit/promoted-builds-plugin/98a79660b82648f21035c1359c7542bc99d2faef Log: [FIXED JENKINS-8963] Added REST API to create promotion processes.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/resources/hudson/plugins/promoted_builds/PromotedProjectAction/_api.jelly
          http://jenkins-ci.org/commit/promoted-builds-plugin/1c726a6a2585fcf3debfdac4796789e159164f3d
          Log:
          JENKINS-8963 Documentation of REST API (CRUD operations).

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/resources/hudson/plugins/promoted_builds/PromotedProjectAction/_api.jelly http://jenkins-ci.org/commit/promoted-builds-plugin/1c726a6a2585fcf3debfdac4796789e159164f3d Log: JENKINS-8963 Documentation of REST API (CRUD operations).

          eguess74 added a comment -

          Jesse,

          Thank you very much for implementing this long awaited feature!!

          Can you please look into adding a separate permission into matrix-based security allowing to create promotions? Do you want it to be pulled into separated bug?

          Thanks!

          eguess74 added a comment - Jesse, Thank you very much for implementing this long awaited feature!! Can you please look into adding a separate permission into matrix-based security allowing to create promotions? Do you want it to be pulled into separated bug? Thanks!

          Jesse Glick added a comment -

          Certainly that would be a separate issue. I would not have time to work on it myself (someone else may).

          Jesse Glick added a comment - Certainly that would be a separate issue. I would not have time to work on it myself (someone else may).

            jglick Jesse Glick
            kirill_evstigneev Kirill Evstigneev
            Votes:
            19 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: