Troubles with publishing artifacts

72 views
Skip to first unread message

alexeys...@gmail.com

unread,
Sep 22, 2015, 6:01:55 AM9/22/15
to Jenkins Users
Hello!

Help me, please, i have some troubles with publishing artifacts. My jenkins server located on the subdomain jenkins.mysubdomain.com and after build it generates links such as http://jenkins.subdomain.com/job/branch/build_id/artifact/bin/Artifacts/branch-build_id-bin.7z  for download artifacts. But there aren't any files with these links. How can i specify link for artifacts on the build page or publish artifactes on the link address (without using artifacts plugins)?

Alexey Shirjaew

Victor Martinez

unread,
Sep 22, 2015, 7:55:31 AM9/22/15
to Jenkins Users
If I understood correctly, you could use groovy post build in order to create your own build dashboard:


And add a build script like the above one

def branch = manager.getEnvVariable("branch")
...
manager
.createSummary("folder.gif").appendText("<h1>Artifacts:</h1> <a href=/${branch}/build_id/artifact/bin/Artifacts/branch-build_id-bin.7z> 7z</a>", false, false, false, "green")


Cheers
Reply all
Reply to author
Forward
0 new messages