I am working on a requirement I need to pass the log file of the job to a web service after the build step
I would like to know
- What are the plugins available to call a web service after the build which would facilitate me to pass the log file.
I am getting the path of the log file using:
$JENKINS_HOME/jobs/$JOB_NAME/builds/${BUILD_NUMBER}/log
how to send the contents of it via HTTP Post
Where are you trying to pass it? IS ssh available? IF it is you could ssh into the web server and copy the file as part of your jenkins script.
OR
To do a http post use this plugin.
https://wiki.jenkins.io/display/JENKINS/HTTP+POST+Plugin