It's all about the answers!

Ask a question

How to use artifactLinkPublisher to link a file in a linux environment


Luiz Almeida (23013768) | asked Apr 08 '14, 5:54 p.m.
Hello,

My build deploys a .WAR file on webapps folder of a web server (tomcat) in linux environment.
All works fine, except the download of war file in "Downloads" tab of the build result. When I try to download the file, an error occurs (java.io.FileNotFoundException)

I am using the following tag in my build.xml file:

        <artifactLinkPublisher buildResultUUID="${buildResultUUID}"
                               repositoryAddress="${repositoryAddress}"
                               verbose="true"
                               url="http://<hostname>:8080/<projectname>.war"
                               label="Project Web Archive"           
                               userId="${userId}"
                               passwordFile="${passwordFile}" />       

What am I doing wrong? How to use the artifactLinkPublisher in this scenario?            

Thanks.


Comments
Piotr Aniola commented Apr 09 '14, 5:39 a.m.

Can you include the entire error message? Does it say what is the path of the file the system failed to find?


Luiz Almeida commented Apr 10 '14, 11:02 a.m.

Piotr, the error message is the following:

Error downloading the file.
Reason: The URL especified was not located.

Be the first one to answer this question!


Register or to post your answer.