Hi,

Job 1 might use
https://jenkins.io/doc/pipeline/steps/core/#-archiveartifacts-%20archive%20the%20artifacts
to
archive what you want to share.
Job 2 might use https://jenkins.io/doc/pipeline/steps/copyartifact/ to grab
the files from job1

Something like that:

job1

archiveArtifacts '*.dll'
build 'job2'

job2

copyArtifacts projectName: 'job1', selector: upstream()

On Mon, Jul 1, 2019 at 2:06 PM sirisha sai <saisirisha1...@gmail.com> wrote:

> Hi,
>
> Thank you for your reply. Is there any way to share files between
> workspaces of different builds.The output dll's of Job 1 should be copied
> in 2 locations in Jenkins workspace of build 2.Is there a way to implement
> this via Jenkins pipeline.
>
> Saisirisha
>
> On Monday, July 1, 2019 at 7:29:43 PM UTC+8, Emilio Escobar Reyero wrote:
>>
>> No, you cannot use stash/unstash for copying files from one job to
>> another but for sharing files between workspaces of the same build.
>> Probably https://jenkins.io/doc/pipeline/steps/copyartifact/ is what you
>> are looking for.
>>
>> On Mon, Jul 1, 2019 at 10:37 AM sirisha sai <saisiri...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Currently I am working on a .net project.I have a scenario,Job 1
>>> output(dll's) needs to be copied to Job 2 Jenkins workspace and then run
>>> the corresponding sln(solution) file of Job 2.In this case can I use stash
>>> and unstash to copy the files or should I use copy artifacts plugin.I am
>>> currently using jenkins pipeline script.Please suggest
>>> any references or docs.
>>>
>>>
>>> Thanks,
>>> Saisirisha
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/948d608d-b9bb-4c54-b745-5c213c2984bf%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/948d608d-b9bb-4c54-b745-5c213c2984bf%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>> Emilio Escobar
>> Software Engineer
>>
>> CloudBees, Inc.
>>
>> [image: CloudBees-Logo.png] <http://www.cloudbees.com>
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/e62bdfa9-ddf6-4f6b-af4f-3a251bb0196e%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/e62bdfa9-ddf6-4f6b-af4f-3a251bb0196e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEVizn%2B7%2BQP7eTYWyXvvC9N9V9ZHc1psS4a0UWpQcHprZr%3DPAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to