0

The equivalent expression for './' as a path in Jenkins.

I want to use the workspace of another job and I need the equivalent expression for './' for the workspace of the other job.

So I can access the folders in the workspace.

Apfelsaft
  • 1
  • 1
  • "Another job" is not guaranteed to be there, to run on the same node, or to run ever. What are you trying to achieve? – MaratC Apr 06 '20 at 11:59
  • I generated files in another job. They are in a folder in the workspace of the other job. Now I want to access these files in my current pipeline, but they are not in the workspace. – Apfelsaft Apr 06 '20 at 12:07
  • The way to address it is that the first job will "archive artifacts" (the generated files). You can then use Jenkins API to access these artifacts. See https://stackoverflow.com/q/39960198/2047614 and https://stackoverflow.com/q/36843215/2047614 – MaratC Apr 06 '20 at 12:19
  • thank you. But how can i get a specific folder ? – Apfelsaft Apr 06 '20 at 12:35

0 Answers0