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: All views disappear on restart

2019-07-02 Thread Pino Alu
Hi Lukas, I am experiencing the same issue. We are on 2.176.1. Did you find a solution to this issue? Thanks, Pino On Monday, December 15, 2014 at 6:45:00 AM UTC-6, Lukas Rytz wrote: > > Hello! > > After upgrading to 1.593 we have issues with views: after restarting > Jenkins, all views dis

fatal: git index-pack failed

2019-07-02 Thread Kevin Stevens
I'm getting a fatal error reported when doing a repository scan (Scan Multibranch Pipeline Now) which was previously working. I've run the git commands manually from the command line (copied and pasted) and they appear to work correctly, so it seems like a problem with the Jenkins git client plu

Re: fatal: git index-pack failed

2019-07-02 Thread Mark Waite
The repository in the workspace on the agent running that build is probably damaged. Wipe the workspace on the agent and run the job again. If wiping the workspace and running the job again does not resolve it, you may also be encountering a timeout while cloning the repository. Increase the tim

Memory issues with Jenkins

2019-07-02 Thread Sverre Moe
We have assigned 8GB of memory to our Jenkins instance. JAVA_OPTIONS=-Xmx8g Still we experience memory issues after a while running. java.lang.OutOfMemoryError: unable to create new native thread We have: aprox 40 connected build agents aprox 400 pipeline jobs We have a test Jenkins instance run

Re: fatal: git index-pack failed

2019-07-02 Thread Mark Waite
Sorry, I didn't read your description thoroughly enough. You said: I'm getting a fatal error reported when doing a repository scan (Scan > Multibranch Pipeline Now) which was previously working. > The command line git log output indicates that your repository is large enough that it may be reach

Re: Memory issues with Jenkins

2019-07-02 Thread Sverre Moe
Today it has been chaotic. Several build agents disconnected Unexpected termination of the channel Many builds failed because of Memory error. I have tried restarting Jenkins several times today. Anyone have any suggestions? tirsdag 2. juli 2019 14.34.25 UTC+2 skrev Sverre Moe følgende: > > We

Skip a Jenkins job build in a pipeline

2019-07-02 Thread Vijay Gongle
I have a Jenkins pipeline which has 10 Jobs configured to run one after the other in the post build action. Anytime there's a change in Job's related git code, the build is triggered and all the following jobs run though rest of the Job code were not committed. For e.g, in a series of 10 jobs

Re: Email-ext plugin request: Export "Requestor" to environment

2019-07-02 Thread Slide
This is not the plsce to request something like this. Use Jira for features. https://issues.jenkins.io. On Mon, Jul 1, 2019, 13:35 Chris Williamson wrote: > Since “Requestor means the original requestor for rebuilds: > > If an e-mail is supposed to be sent to the requester, follow the build >> t

Re: fatal: git index-pack failed

2019-07-02 Thread Kevin Stevens
Thanks for the responses and the issue link Mark, I've increased the Git timeout value as described, and confirmed in the log that the 30 minute timeout is in effect, but I'm still seeing the same failure (i.e. fatal error in Scan Multibranch Pipeline Now). I was pretty confident that there's no

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: fatal: git index-pack failed

2019-07-02 Thread Kevin Stevens
Hi Mark - whilst looking for a place to stash my reference repo I discovered that Jenkins is keeping a cache of git checkouts in the /var/lib/jenkins/cache folder, and by deleting these files the multibranch pipeline scan now succeeds, so there was obviously something corrupt in that cache (pos

Re: fatal: git index-pack failed

2019-07-02 Thread Mark Waite
That's great news. A git repository that needs more than 10 minutes to clone is a really good candidate for reference repositories and all the other techniques suggested in the "Git in the Large" video. The first preference with repositories that large is to reduce their size by removing large fi

Re: Skip a Jenkins job build in a pipeline

2019-07-02 Thread Mark Waite
One technique is to create a single Jenkins Pipeline job that performs all 10 of those steps, then use the declarative Pipeline ability to conditionally skip a step based on conditions you decide. However, I've never tried to manage that complex a Pipeline job, so I can't comment more than to sugg

Re: Skip a Jenkins job build in a pipeline

2019-07-02 Thread Nalin Garg
I had a similar need. I ended up querying git to give list of all files that were changed in PR. And then have logic around what files would be wrapped in "if, else"/ "when" block. On Tuesday, July 2, 2019 at 6:48:23 AM UTC-7, Vijay Gongle wrote: > > I have a Jenkins pipeline which has 10 Jobs

Jenkins access lock resources variable in Groovy script to restrict where this project can be run

2019-07-02 Thread chinna obireddy
Problem: I have multiple lockable resources at various locations with labels DEVICE_A and DEVICE_B along with Jenkins Slaves labels JS_COUTRYA and JS_COUNTRYB in the respective countries. Goal: Jenkins should choose the Jenkins SLave based on the Locked Resource for example: If Jenkins Master

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 refere

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 ne

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 dll’s