[JIRA] [subversion] (JENKINS-24167) IllegalArgumentException: Null value not allowed as an environment variable: TRACKING_SVN_BUILD in Subversion Polling Log

2014-08-08 Thread maxim.stry...@gmail.com (JIRA)














































Maxim Strygin
 created  JENKINS-24167


IllegalArgumentException: Null value not allowed as an environment variable: TRACKING_SVN_BUILD in Subversion Polling Log















Issue Type:


Bug



Assignee:


Unassigned


Components:


subversion



Created:


08/Aug/14 7:13 AM



Description:



Builds are not triggered via Poll SCM.

Subversion Polling Log contains the following error:


Started on Aug 7, 2014 5:21:46 PM
ERROR: Failed to record SCM polling for hudson.matrix.MatrixProject@7ad2477b[test]
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: TRACKING_SVN_BUILD
	at hudson.EnvVars.put(EnvVars.java:356)
	at hudson.plugins.trackingsvn.TrackingSVNAction.buildEnvVars(TrackingSVNAction.java:26)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:919)
	at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1355)
	at hudson.scm.SCM.poll(SCM.java:401)
	at hudson.model.AbstractProject._poll(AbstractProject.java:1430)
	at hudson.model.AbstractProject.poll(AbstractProject.java:1333)
	at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119)
	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:509)
	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:538)
	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)



The job is configured in the following way:

Build Triggers
  Poll SCM
   Schedule H 17 * * *



Version of Jenkins this bug is occurring

Jenkins ver. 1.574



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.574.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
org.apache.commons.logging.Log	org.apache.commons.logging.impl.Jdk14Logger
os.arch	amd64
os.name	Linux
os.version	2.6.18-308.el5
path.separator	:
sun.arch.data.model	64

[JIRA] [core] (JENKINS-23965) Discard Old Builds does not work properly with Execute concurrent builds if necessary enabled. Not all builds are completely removed.

2014-07-25 Thread maxim.stry...@gmail.com (JIRA)














































Maxim Strygin
 commented on  JENKINS-23965


Discard Old Builds does not work properly with Execute concurrent builds if necessary enabled. Not all builds are completely removed.















1) Could you show builds directory contents 

	
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_10-26-00
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_11-26-00
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_12-26-00
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_13-26-00
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_14-26-00
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_15-41-14
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_16-26-16
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_17-26-16
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_18-26-17
drwxr-xr-x 2 root root 4096 Jul 23 06:29 2014-07-22_19-26-16
drwxr-xr-x 2 root root 4096 Jul 23 09:37 2014-07-23_09-24-48
drwxr-xr-x 2 root root 4096 Jul 23 09:37 2014-07-23_09-24-49
drwxr-xr-x 2 root root 4096 Jul 23 09:37 2014-07-23_09-24-50
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-52
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-54
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-55
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-56
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-57
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-58
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-24-59
drwxr-xr-x 2 root root 4096 Jul 23 09:38 2014-07-23_09-25-00
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-39-43
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-39-44
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-39-45
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-39-47
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-40-14
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-40-20
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-40-21
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-40-22
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-40-23
drwxr-xr-x 2 root root 4096 Jul 25 08:47 2014-07-25_08-40-57
drwxr-xr-x 2 root root 4096 Jul 25 09:00 2014-07-25_08-54-08
drwxr-xr-x 2 root root 4096 Jul 25 09:00 2014-07-25_08-54-14
drwxr-xr-x 2 root root 4096 Jul 25 09:26 2014-07-25_09-26-16
drwxr-xr-x 2 root root 4096 Jul 25 10:26 2014-07-25_10-26-16
drwxr-xr-x 2 root root 4096 Jul 25 12:02 2014-07-25_11-26-16
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-38
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-39
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-40
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-41
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-42
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-43
drwxr-xr-x 2 root root 4096 Jul 25 12:16 2014-07-25_12-10-49
drwxr-xr-x 2 root root 4096 Jul 25 13:58 2014-07-25_12-26-16
drwxr-xr-x 2 root root 4096 Jul 25 13:57 2014-07-25_13-26-16
drwxr-xr-x 2 root root 4096 Jul 25 14:41 2014-07-25_14-26-16
lrwxrwxrwx 1 root root   19 Jul 23 08:38 229 - 2014-07-22_10-26-00
lrwxrwxrwx 1 root root   19 Jul 23 08:38 230 - 2014-07-22_11-26-00
lrwxrwxrwx 1 root root   19 Jul 23 08:38 231 - 2014-07-22_12-26-00
lrwxrwxrwx 1 root root   19 Jul 23 08:38 232 - 2014-07-22_13-26-00
lrwxrwxrwx 1 root root   19 Jul 23 08:38 233 - 2014-07-22_14-26-00
lrwxrwxrwx 1 root root   19 Jul 23 08:38 234 - 2014-07-22_15-41-14
lrwxrwxrwx 1 root root   19 Jul 23 08:38 235 - 2014-07-22_16-26-16
lrwxrwxrwx 1 root root   19 Jul 23 08:38 236 - 2014-07-22_17-26-16
lrwxrwxrwx 1 root root   19 Jul 23 08:38 237 - 2014-07-22_18-26-17
lrwxrwxrwx 1 root root   19 Jul 23 08:38 238 - 2014-07-22_19-26-16
lrwxrwxrwx 1 root root   19 Jul 23 09:38 282 - 2014-07-23_09-24-52
lrwxrwxrwx 1 root root   19 Jul 23 09:38 283 - 2014-07-23_09-24-54
lrwxrwxrwx 1 root root   19 Jul 23 09:38 284 - 2014-07-23_09-24-55
lrwxrwxrwx 1 root root   19 Jul 23 09:38 285 - 2014-07-23_09-24-56
lrwxrwxrwx 1 root root   19 Jul 23 09:38 286 - 2014-07-23_09-24-57
lrwxrwxrwx 1 root root   19 Jul 23 09:38 287 - 2014-07-23_09-24-58
lrwxrwxrwx 1 root root   19 Jul 23 09:38 288 - 2014-07-23_09-24-59
lrwxrwxrwx 1 root root   19 Jul 23 09:38 289 - 2014-07-23_09-25-00
lrwxrwxrwx 1 root root   19 Jul 25 08:47 376 - 2014-07-25_08-39-45
lrwxrwxrwx 1 root root   19 Jul 25 08:47 378 - 2014-07-25_08-39-47
lrwxrwxrwx 1 root root   19 Jul 25 08:40 383 - 2014-07-25_08-40-14
lrwxrwxrwx 1 root root   19 Jul 25 08:40 384 - 

[JIRA] [core] (JENKINS-23965) Discard Old Builds does not work properly with Execute concurrent builds if necessary enabled. Not all builds are completely removed.

2014-07-24 Thread maxim.stry...@gmail.com (JIRA)














































Maxim Strygin
 created  JENKINS-23965


Discard Old Builds does not work properly with Execute concurrent builds if necessary enabled. Not all builds are completely removed.















Issue Type:


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