seems like a very specific use case - I would not write a plugin, but use the “managed scripts plugin” to share the script within different jobs: https://wiki.jenkins-ci.org/display/JENKINS/Managed+Script+Plugin /Domi
On 13 Jul 2015, at 14:07, Vince Webb <[email protected]> wrote: > I want a plugin that will read URLs, and filenames from a file in the > workspace, request each URL and store the content as the given filename in > the workspace. > > If these files existed in source control then obviously I would pull them > from GIT, SVN or whatever. If they existed in Maven then I would pull them > from there but these are files which we want to pull using HTTP or HTTPS from > a list of URLs. > > I have written a toy town version of this as a bash script: > ///// > while read -r filename url > > do > > > curl -o $filename $url > > done < url_list.txt > > ///// > > It works but I want to replace the script with a plugin for the following > reasons: > We need to repeat it in multiple Jenkins projects > It needs to have good error reporting > Needs to do HTTPS as well as HTTP > > Has anybody written a plugin similar to this ? > > I am a complete newbie when it comes to both Maven and writing Jenkins > plugins but I will give it a go if there is nothing else out there. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/c3152928-f9f0-456d-9b2b-a4620785c4ae%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/94324EAB-4D6F-461A-93D0-AE258FEF1631%40fortysix.ch. For more options, visit https://groups.google.com/d/optout.
