Re: Can we use and stash and unstash to copy artifacts from one job to another

2020-04-15 Thread kapook kapookna
On Monday, July 1, 2019 at 3:37:40 PM UTC+7, sirisha sai 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

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread sirisha sai
Hi, In my case Job 1 and Job 2 contains different workspaces, but job2 should refer the build artifacts (dll’s) from job 1 and run the sln file which is in job 2 workspace. So I want to publish these artifacts to nexus and refer it from there.I am not sure in which file should I refer these

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread Slide
I would recommend using a local number repo, then using nuget restore with that as a source. There are lots of examples online. On Tue, Jul 2, 2019, 17:39 sirisha sai wrote: > Hi, > > As of now our organization will not support downloading plugins, so they > asked me to publish Job 1 dll’s to

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread sirisha sai
Hi, As of now our organization will not support downloading plugins, so they asked me to publish Job 1 dll’s to nexus repository and reference these dll’s from nexus in the Job 2.For java apps we can put the dependency jars in build.gradle dependency section but in case of msbuild how do we

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread Martin d'Anjou
You can use the external workspace manager for this purpose. No copies are made, just reuse the same workspace between jobs. Examples are provided in the README. On Monday, July 1, 2019 at 4:37:40 AM UTC-4, sirisha sai wrote: > >

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread sirisha sai
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

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-01 Thread sirisha sai
Hi, I opted using copy artifacts plugin,in this case can we copy artifacts from job 1 workspace to Job 2 workspace (2 locations). Thanks, Saisirisha On Monday, July 1, 2019 at 8:44:05 PM UTC+8, Emilio Escobar Reyero wrote: > > Hi, > > Job 1 might use >

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-01 Thread sirisha sai
Hi, I will go through the docs and give this a try.Thank you for the help.I will let you know the output once it is done. Saisirisha On Mon, 1 Jul 2019 at 8:43 PM, Emilio Escobar Reyero < eescobarrey...@cloudbees.com> wrote: > Hi, > > Job 1 might use >

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-01 Thread Emilio Escobar Reyero
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'

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-01 Thread sirisha sai
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

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-01 Thread Emilio Escobar Reyero
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 wrote: > Hi, > > Currently

Can we use and stash and unstash to copy artifacts from one job to another

2019-07-01 Thread sirisha sai
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