Re: How to cleanup workspace built from docker

2020-05-12 Thread Den
gt; > > > On Tuesday, 12 May 2020 08:51:43 UTC+1, Den wrote: >> >> Hi, >> >> I'm building artifacts in docker image and if I'm aborting a build, the >> deleteDir function fails to delete artifacts since >> they were created with root user in docker and t

Re: How to cleanup workspace built from docker

2020-05-12 Thread Den
th a user > corresponding to the UID and GIU; something like "--user $UID:$GID" instead > of root > > > > On Tuesday, 12 May 2020 08:51:43 UTC+1, Den wrote: >> >> Hi, >> >> I'm building artifacts in docker image and if I'm aborting a buil

How to cleanup workspace built from docker

2020-05-12 Thread Den
Hi, I'm building artifacts in docker image and if I'm aborting a build, the deleteDir function fails to delete artifacts since they were created with root user in docker and the function is called by jenkins user outside of docker. Is there any workaround? pipeline { agent {label 'docker'}

Re: Poll scm in specific branch only

2020-05-06 Thread Den
kout([$class: 'GitSCM', branches: [[name: '$branch_name']], extensions: > [[$class: 'WipeWorkspace'], url: '$git_url']]]) > > > On Tue, 5 May 2020, 20:15 Den, > wrote: > >> Hello, >> >> I have a pipeline which should only build if there are changes in branch >&g

Poll scm in specific branch only

2020-05-05 Thread Den
Hello, I have a pipeline which should only build if there are changes in branch specified. It builds however every 5 minutes, since there are changes in master. Is there a way to poll scm only for a branch? Den pipeline { agent none triggers { pollSCM('H/5

Jenkins queue and pipeline job - check node availability before build starts

2019-03-06 Thread Den Slobozhanskyi
Hi Jenkins people, *TL;DR:* is there any way to queue pipeline job if there are no executors available on the given node without actually starting a build, like I can do with freestyle job and "Restrict where this project can be run" option or throttling plugin? *Long story:* I have

Re: How to prevent concurrent execution of jobs on the same node, but allow a few parallel steps execution?

2019-01-31 Thread Den Slobozhanskyi
se "throttle" in pipeline options. > > On Wednesday, January 30, 2019 at 7:47:20 PM UTC+2, Den Slobozhanskyi > wrote: >> >> Just to clarify - does it mean that Throttling plugin throttles not the >> job as a whole, but each step in parallel? My assumption was that >

Re: How to prevent concurrent execution of jobs on the same node, but allow a few parallel steps execution?

2019-01-30 Thread Den Slobozhanskyi
Just to clarify - does it mean that Throttling plugin throttles not the job as a whole, but each step in parallel? My assumption was that throttling is only for the job, and nested threads have nothing to do with throttle. By your words it looks like setting throttling to "1" for the job reduce

How to keep ANT build script up to date?

2015-08-31 Thread Den P
Hello, I'm using Jenkins to build and test a large Java program. Jenkins and the ANT build script are working perfectly. Since different developers are still adding code and new classes to the program, the structure of the program is changing all the time. *Now here the question: * Is there

Configuring Violations plugin with Jenkins for Django project

2014-02-05 Thread den ben
Hi, I'm trying to configure the violoations plugin. I get the line-graph summarization of violations on the project, I get the link for violations, i can click which shows a run-down of all the files in my project and the number of violations in each. And then if I click a file, it should take

Re: Violations plug-in not showing errors or source

2014-02-05 Thread den ben
Alex, I'm experiencing the same thing. Will the fix you've proposed work for a free-form build? (I'm not using a Maven job) On Thursday, January 26, 2012 6:07:10 PM UTC-6, Daniel Becroft wrote: Hi, Since upgrading to a recent release (currently on 1.448, but it was happening before that),