Upload artifact from jenkins server to slack using curl
Everytime when jenkins completes building an artifact I want it to upload an artifact to the slack channel. There are slack plugins available for jenkins pipeline that uploads file but its not always the case for everyone. What I have covered below is the alternative approach using curl.