Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 24/Jul/14 7:23 AM
Description:

Despite the fact that Discard Old Builds is enabled and Max # of builds to keep is set to 10, there are many old builds remain in <job_name>/builds directory.
It should be noted that at the same time those not deleted builds are not visible via web GUI of Jenkins.
This problem arise for jobs that have Execute concurrent builds if necessary option enabled.

How to reproduce
The job (let's call it jobA), beside Discard Old Builds, should have Execute concurrent builds if necessary option enabled.
Make some of the nodes busy by running another job (e.g.: jobC) on them.
Launch jobA a few times via Jenkins web interface. The number of running jobA should be bigger than number set in Max # of builds to keep.
When jobC completes, all instances of running jobA will be able to complete.
Check jobA/builds/ directory at Jenkins, there are not discarded builds.

Version of Jenkins this bug is occurring

Jenkins ver. 1.572

How we are running Jenkins

/usr/java/latest/bin/java -XX:MaxPermSize=1024M -Dhudson.Functions.autoRefreshSeconds=60 -Dhudson.tasks.Fingerprinter.enableFingerprintsInDependencyGraph=true -Dhudson.upstreamCulprits=true -Xmx3000M -Dhudson.scm.SubversionSCM.pollFromMaster=true -Djava.util.logging.ConsoleHandler.level=FINE -jar lib/jenkins.war --httpPort=18080 --webroot=mst/war --ajp13Port=-1

Environment we are using

System Properties
Name  ?	Value   
awt.toolkit	sun.awt.X11.XToolkit
executable-war	/data/ci/lib/jenkins-1.572.war
file.encoding	UTF-8
file.encoding.pkg	sun.io
file.separator	/
hudson.diyChunking	true
hudson.Functions.autoRefreshSeconds	60
hudson.scm.SubversionSCM.pollFromMaster	true
hudson.tasks.Fingerprinter.enableFingerprintsInDependencyGraph	true
hudson.upstreamCulprits	true
java.awt.graphicsenv	sun.awt.X11GraphicsEnvironment
java.awt.headless	true
java.awt.printerjob	sun.print.PSPrinterJob
java.class.path	lib/jenkins.war
java.class.version	51.0
java.endorsed.dirs	/usr/java/jdk1.7.0_60/jre/lib/endorsed
java.ext.dirs	/usr/java/jdk1.7.0_60/jre/lib/ext:/usr/java/packages/lib/ext
java.home	/usr/java/jdk1.7.0_60/jre
java.io.tmpdir	/tmp
java.library.path	/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name	Java(TM) SE Runtime Environment
java.runtime.version	1.7.0_60-b19
java.specification.name	Java Platform API Specification
java.specification.vendor	Oracle Corporation
java.specification.version	1.7
java.util.logging.ConsoleHandler.level	FINE
java.vendor	Oracle Corporation
java.vendor.url	http://java.oracle.com/
java.vendor.url.bug	http://bugreport.sun.com/bugreport/
java.version	1.7.0_60
java.vm.info	mixed mode
java.vm.name	Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name	Java Virtual Machine Specification
java.vm.specification.vendor	Oracle Corporation
java.vm.specification.version	1.7
java.vm.vendor	Oracle Corporation
java.vm.version	24.60-b09
jna.platform.library.path	/usr/lib64:/lib64:/usr/lib:/lib
line.separator	
mail.smtp.sendpartial	true
mail.smtps.sendpartial	true
os.arch	amd64
os.name	Linux
os.version	2.6.18-308.el5
path.separator	:
sun.arch.data.model	64
sun.boot.class.path	/usr/java/jdk1.7.0_60/jre/lib/resources.jar:/usr/java/jdk1.7.0_60/jre/lib/rt.jar:/usr/java/jdk1.7.0_60/jre/lib/sunrsasign.jar:/usr/java/jdk1.7.0_60/jre/lib/jsse.jar:/usr/java/jdk1.7.0_60/jre/lib/jce.jar:/usr/java/jdk1.7.0_60/jre/lib/charsets.jar:/usr/java/jdk1.7.0_60/jre/lib/jfr.jar:/usr/java/jdk1.7.0_60/jre/classes
sun.boot.library.path	/usr/java/jdk1.7.0_60/jre/lib/amd64
sun.cpu.endian	little
sun.cpu.isalist	
sun.font.fontmanager	sun.awt.X11FontManager
sun.io.unicode.encoding	UnicodeLittle
sun.java.command	lib/jenkins.war --httpPort=18080 --webroot=mst/war --ajp13Port=-1
sun.java.launcher	SUN_STANDARD
sun.jnu.encoding	UTF-8
sun.management.compiler	HotSpot 64-Bit Tiered Compilers
sun.os.patch.level	unknown
svnkit.http.methods	Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent	false
user.country	US
user.dir	/data/ci
user.home	/root
user.language	en
user.name	root
user.timezone	Europe/Paris
Environment Variables
Name  ?	Value   
_	/usr/bin/nohup
ci_root_dir	/data/ci
CVS_RSH	ssh
G_BROKEN_FILENAMES	1
HISTSIZE	1000
HOME	/root
HOSTNAME	
HTTP_PORT	18080
INPUTRC	/etc/inputrc
JAVA_HOME	/usr/java/latest
JENKINS_HOME	/data/ci/mst
KDE_IS_PRELINKED	1
KDE_NO_IPV6	1
KDEDIR	/usr
LANG	en_US.UTF-8
LESSOPEN	|/usr/bin/lesspipe.sh %s
LOGNAME	root
LS_COLORS	di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
MAIL	/var/spool/mail/root
MASTER_HOST	
NLSPATH	/usr/dt/lib/nls/msg/%L/%N.cat
OLDPWD	/data/ci
PATH	/opt/CollabNet_Subversion/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PWD	/data/ci
QTDIR	/usr/lib64/qt-3.3
QTINC	/usr/lib64/qt-3.3/include
QTLIB	/usr/lib64/qt-3.3/lib
SHELL	/bin/bash
SHLVL	2
SSH_ASKPASS	/usr/libexec/openssh/gnome-ssh-askpass
SSH_CLIENT	16.52.177.153 61411 22
SSH_CONNECTION	16.52.177.153 61411 16.17.92.204 22
SSH_TTY	/dev/pts/0
TERM	xterm
USER	root
XFILESEARCHPATH	/usr/dt/app-defaults/%L/Dt
Plugins
Name  ?	Version   	Enabled   	Pinned   
active-directory	1.38	true	false
analysis-collector	1.41	true	false
analysis-core	1.57	true	false
ant	1.2	true	false
antisamy-markup-formatter	1.2	true	true
async-http-client	1.7.8	true	false
audit-trail	2.0	true	false
changes-since-last-success	0.5	true	false
checkstyle	3.39	true	false
collabnet	1.1.9	true	false
conditional-buildstep	1.3.3	true	false
config-file-provider	2.7.4	true	false
copy-data-to-workspace-plugin	1.0	true	false
copy-to-slave	1.4.3	true	false
copyartifact	1.30	true	false
create-fingerprint	1.2	true	false
credentials	1.15	true	true
cvs	2.12	true	true
dependencyanalyzer	0.6	true	false
disk-usage	0.23	true	false
downstream-buildview	1.9	true	false
downstream-ext	1.8	true	false
dry	2.40	true	false
dumpinfo-buildwrapper-plugin	1.1	true	false
elastic-axis	1.2	true	false
envinject	1.89	true	false
extended-read-permission	1.0	true	false
external-monitor-job	1.2	true	false
findbugs	4.56	true	false
git	2.2.2	true	false
git-client	1.9.1	true	false
groovy	1.19	true	false
groovy-postbuild	1.9	true	false
javadoc	1.1	true	false
jenkins-multijob-plugin	1.13	true	false
jquery	1.7.2-1	true	false
ldap	1.6	true	false
locale	1.2	true	false
m2-repo-reaper	1.0	true	false
m2release	0.14.0	true	false
mailer	1.9	true	true
mapdb-api	1.0.1.0	true	false
matrix-auth	1.2	true	true
matrix-project	1.2	true	false
matrix-reloaded	1.1.3	true	false
matrixtieparent	1.2	true	false
maven-deployment-linker	1.5.1	true	false
maven-invoker-plugin	1.2	true	false
maven-plugin	2.5	true	true
pam-auth	1.1	true	false
parameterized-trigger	2.25	true	false
pending-changes	0.3.0	true	false
platformlabeler	1.1	true	false
pmd	3.38	true	false
postbuild-task	1.8	true	false
PrioritySorter	2.8	true	false
promoted-builds	2.17	true	false
release	2.4.1	true	false
repository	1.2	true	false
run-condition	1.0	true	false
scm-api	0.2	true	false
scoring-load-balancer	1.0.1	true	false
slave-prerequisites	1.0	true	false
ssh-agent	1.4.1	true	false
ssh-credentials	1.7.1	true	true
ssh-slaves	1.6	true	true
subversion	2.4	true	true
tasks	4.39	true	false
token-macro	1.10	true	false
toolenv	1.1	true	false
tracking-svn	1.1	true	false
translation	1.11	true	true
versionnumber	1.4.1	true	false
view-job-filters	1.26	true	false
viewVC	1.7	true	false
warnings	4.40	true	false
windows-slaves	1.0	true	false
Environment: Red Hat Enterprise Linux Server
java version "1.7.0_60"
Project: Jenkins
Labels: jenkins
Priority: Major Major
Reporter: Maxim Strygin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to