How to add a file to download into Jenkins/Hudson plugin -
i need add file downloading plugin, provides build step. want put link html file build step field, , able paste link e-mails etc.
let's assume simple, plain plugin project, pom.xml having this:
<groupid>my.jenkins.plugins</groupid> <artifactid>my-special-plugin</artifactid> <name>my special plugin</name> name of downloadable myspecialtool.exe
question:
where put file under plugin project source
what download url, assuming jenkins @
http://ciserver:8080what write html file link "properly" (if different above)
hoping reference answer: clear, short , to-the-point.
store data want able address 'web data' in src/main/webapp in plugin project.
that directory should addressable /plugin/<name of plugin> (from 'jenkins continuous integration cookbook')
answers enumerated questions:
put file under
src/main/webapp, perhaps in sub-folder, so:
src/main/webapp/download/myspecialtool.exeurl is then:
http://ciserver:8080/plugin/my-special-plugin/download/myspecialtool.exelink put html files:
/plugin/my-special-plugin/download/myspecialtool.exe
Comments
Post a Comment