Trigger "execute maven release" jenkins jobs from another job

Looking for ways to run the “execute maven” job from another jenkins job. It can be a rest api (or) plugin that can do this. I saw posts about the trigger paramterized plugin that can do this, but I see no way to do this. So I need real examples of how to try this.

Thank!

+1
source share
1 answer

This task was opened in Jenkin Jira since July 2015 without movement.

, HTTP POST . :

  • HTTP-
  • httpUser ( ) , API JenkinshttpUserAPIAPI Token... Show API Token ...
  • JenkinsJenkinsHTTP-/-→ HTTP- 2 HTTP global authentication key
  • "" , M2-Release-Plugin
    • releaseVersion ( )
    • developmentVersion ( )
    • ( , doSubmit )
  • HTTP-
    • URL ( ) = http:// JenkinsServerName/job/ JenkinsJobName/m2release/submit
    • HTTP= POST
    • ...
    • = "", 3
    • =
    • = application/x-www-form-urlencoded
    • URL?=
    • = ( 5 json )
    • ?= HTTP request

, , Jenkins m2release . , , , .

+5

Source: https://habr.com/ru/post/1544236/


All Articles