External access to the files in the middle of the build

26 views
Skip to first unread message

rh...@redhat.com

unread,
Jun 24, 2015, 7:13:45 AM6/24/15
to jenkins...@googlegroups.com
Hello,

is there a documented/supported (!) way how to access files created by the job in the middle of the build? As part of the build process, I'd like to call a build service (Fedora Copr) which requires a publicly available file which will be generated by the job. Then, I'd like to continue with some tests.

Thanks in advance
--
Radek

Vincent Latombe

unread,
Jun 25, 2015, 5:16:38 AM6/25/15
to Jenkins Users
Hi,

you could use the workspace access through <job url>/ws/filepath if it is feasible for you to grant public access to the job workspace.

Vincent

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7bd3b1b8-0a87-4f5c-82bb-6328bcecca6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maximilian Hill

unread,
Jun 25, 2015, 9:53:59 AM6/25/15
to jenkins...@googlegroups.com

I think you don't need public access for that. I trigger my builds via http from a hook on my git repository server with http auth. The workspace should be accessable the same way. (not tested)

Max

Radek Holy

unread,
Jun 25, 2015, 1:50:42 PM6/25/15
to jenkins...@googlegroups.com
Thanks, I'll check. Especially I'll check whether it works if the process runs on a slave.

BTW, is the path documented somewhere? I don't see it in the ".../api" resources.

Can you think of any concerns related to the publicly accessible workspace? (In my case, there are no secrets in the files.)

--
Radek



Radek Holy

unread,
Jun 25, 2015, 1:54:17 PM6/25/15
to jenkins...@googlegroups.com
Either I don't understand you or you didn't understand me.

The job is already triggered by changes in a Git repository. But one of the steps in the build script is to trigger a build in the external build service. Then it waits for the results and continues with some additional tests.
--
Radek




Radek Holy

unread,
Jul 1, 2015, 11:54:31 AM7/1/15
to jenkins...@googlegroups.com
Thank you, works for me.

BTW, I've (re)opened a request for the documentation: https://issues.jenkins-ci.org/browse/JENKINS-2983#comment-231262

--
Radek



Reply all
Reply to author
Forward
0 new messages