Jenkins Remote Build

 My colleague asked a request whether trigger a job from other application.Finding the answer from google that Jenkins has the solution to do this.Which can use Http API to trigger a job.

How To

1.Enabled Global Security
If the option was not enabled that the remote trigger build cannot be bound in the second step.
http://localhost:8080/configureSecurity/


2.Build Job Setting Token


3.Testing Build

Sending the Url through the Http.
http://localhost:8080/job/Pipeline-Remote-Lab/build?token=KimToken&cause=WebTest

  • Pipeline-Remote-Lab : Job' Name
  • token : Authenticate Token
  • cause  : remark

The build history will show the relative info which is trigger from remote and remark.


Reference

Popular posts from this blog

Stopping TypeScript Compile to accelerate debugging

VS2017 Unable to copy file roslyn