Hi,

If I publish the Job 1 build artifacts(dll's) to Nexus repository,how can I 
reference these dll's in the Job 2,for java apps we reference it in 
build.gradle,likewise for MSBuild where do we reference it.

Thanks,
Saisirisha

On Monday, July 1, 2019 at 8:44:05 PM UTC+8, Emilio Escobar Reyero wrote:
>
> 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 <[email protected] 
> <javascript:>> 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 <[email protected]> 
>>> 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 [email protected].
>>>> 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 [email protected] <javascript:>.
>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/255b524e-f8a6-4b22-a031-f0df0636db63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to