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:

  1. where put file under plugin project source

  2. what download url, assuming jenkins @ http://ciserver:8080

  3. what 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:

  1. put file under src/main/webapp, perhaps in sub-folder, so:
    src/main/webapp/download/myspecialtool.exe

  2. url is then:
    http://ciserver:8080/plugin/my-special-plugin/download/myspecialtool.exe

  3. link put html files:
    /plugin/my-special-plugin/download/myspecialtool.exe


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -