How to search jenkins artifacts copied from one job to another.

30 views
Skip to first unread message

Moshe Zuisman

unread,
Feb 7, 2017, 8:48:39 AM2/7/17
to Jenkins Users
Hi.
I have 2 jenkins jobs(both runs on amazon EC2 nodes).
One archive some file as artifact. Second is defined to have an access to those artifact.
When I comes to second node (that access artifact, created by first one) I see that those artifact lays under directorry :
workspace\label=windows2012Aws_ONE_LOCAL_MSSQL
Where windows2012Aws_ONE_LOCAL_MSSQL is name of primary job - that creates artifact...
Is there some Jenkins mnemonic, that I can put in my second job - to point my script (power-shell) where ios those file located? Or I have to use hardcoded path %workspace%../../../label=windows2012Aws_ONE_LOCAL_MSSQL like I have to do now?

Baptiste Mathus

unread,
Feb 16, 2017, 11:26:16 AM2/16/17
to jenkins...@googlegroups.com
IIUC you're trying to use the FS somehow. In general don't do this because you're tying yourself to internals that may change anytime (and could never work as soon as you're starting to use many different agents for those jobs).

Google for "copy artifacts plugin"

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/099cae7f-9656-47e8-8986-6327016ec4a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Beck

unread,
Feb 16, 2017, 3:13:22 PM2/16/17
to jenkins...@googlegroups.com

> On 07.02.2017, at 14:48, Moshe Zuisman <zuis...@gmail.com> wrote:
>
> %workspace%../../../label=windows2012Aws_ONE_LOCAL_MSSQL

Doing things like that will prevent you from starting to build on agents, e.g. to reduce the load on the master, or to implement more restrictive security. So this is generally a bad idea.

Reply all
Reply to author
Forward
0 new messages