-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
System Properties
awt.toolkit sun.awt.windows.WToolkit
executable-war E:\pulsemail\jenkins.war
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
hudson.diyChunking true
hudson.lifecycle hudson.lifecycle.WindowsServiceLifecycle
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path E:\pulsemail\jenkins.war
java.class.version 52.0
java.endorsed.dirs E:\pulsemail\jre\lib\endorsed
java.ext.dirs E:\pulsemail\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home E:\pulsemail\jre
java.io.tmpdir C:\WINDOWS\TEMP\
java.library.path E:\pulsemail\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Groovy\Groovy-2.1.9\bin;C:\Program Files\SlikSvn\bin;C:\Program Files\Java\jre6\bin\client;C:\Program Files\gs\gs9.18\bin;.
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.8.0_66-b18
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_66
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.66-b18
jna.loaded true
jnidispatch.path C:\WINDOWS\TEMP\jna--1833998801\jna84923303253951737.dll
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch x86
os.name Windows 2003
os.version 5.2
path.separator ;
sun.arch.data.model 32
sun.awt.enableExtraMouseButtons true
sun.boot.class.path E:\pulsemail\jre\lib\resources.jar;E:\pulsemail\jre\lib\rt.jar;E:\pulsemail\jre\lib\sunrsasign.jar;E:\pulsemail\jre\lib\jsse.jar;E:\pulsemail\jre\lib\jce.jar;E:\pulsemail\jre\lib\charsets.jar;E:\pulsemail\jre\lib\jfr.jar;E:\pulsemail\jre\classes
sun.boot.library.path E:\pulsemail\jre\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java.command E:\pulsemail\jenkins.war --httpPort=8080 --webroot=E:\pulsemail\war
sun.java.launcher SUN_STANDARD
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 2
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country GB
user.dir E:\pulsemail
user.home C:\WINDOWS\system32\config\systemprofile
user.language en
user.name SYSTEM
user.script
user.timezone Europe/London
user.variant
Environment Variables
Name ↓
Value
ALLUSERSPROFILE C:\Documents and Settings\All Users
BASE E:\pulsemail
ClusterLog C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME LPLEXSTST001
ComSpec C:\WINDOWS\system32\cmd.exe
DEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
FP_NO_HOST_CHECK NO
GROOVY_HOME C:\Program Files\Groovy\Groovy-2.1.9
JAVA_OPTS -Dhttp.proxyHost=10.30.0.2 -Dhttp.proxyPort=8080 -Dgrape.root=e:\tools\groovy-repo
JENKINS_HOME E:\pulsemail
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Groovy\Groovy-2.1.9\bin;C:\Program Files\SlikSvn\bin;C:\Program Files\Java\jre6\bin\client;C:\Program Files\gs\gs9.18\bin
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 1706
ProgramFiles C:\Program Files
PSModulePath C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
SERVICE_ID jenkins
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERPROFILE C:\Documents and Settings\Default User
VSEDEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
windir C:\WINDOWS
WINSW_EXECUTABLE E:\pulsemail\jenkins.exe
Plugins
Name ↓
Version
Enabled
Pinned
ace-editor 1.1 true false
ant 1.3 true false
antisamy-markup-formatter 1.5 true false
branch-api 1.10 true false
build-monitor-plugin 1.10+build.201608030223 true false
cloudbees-folder 5.12 true false
credentials 2.1.4 true false
credentials-binding 1.8 true false
dashboard-view 2.9.10 true false
durable-task 1.12 true false
email-ext 2.47 true false
external-monitor-job 1.6 true false
files-found-trigger 1.4 true false
git-client 1.19.7 true false
git-server 1.7 true false
handlebars 1.1.1 true false
icon-shim 2.0.3 true false
javadoc 1.4 true false
jquery-detached 1.2.1 true false
junit 1.15 true false
ldap 1.12 true false
locale 1.2 true false
mailer 1.17 true false
mapdb-api 1.0.9.0 true false
matrix-auth 1.4 true false
matrix-project 1.7.1 true false
maven-plugin 2.13 true false
mission-control-view 0.9.0 true false
momentjs 1.1.1 true false
pam-auth 1.3 true false
pipeline-build-step 2.2 true false
pipeline-input-step 2.0 true false
pipeline-rest-api 1.7 true false
pipeline-stage-step 2.1 true false
pipeline-stage-view 1.7 true false
plain-credentials 1.2 true false
scm-api 1.2 true false
script-security 1.21 true false
simple-theme-plugin 0.3 true false
ssh-credentials 1.12 true false
ssh-slaves 1.11 true false
structs 1.3 true false
subversion 2.6 true false
throttle-concurrents 1.9.0 true false
timestamper 1.8.4 true false
token-macro 1.12.1 true false
windows-slaves 1.1 true false
workflow-aggregator 2.2 true false
workflow-api 2.1 true false
workflow-basic-steps 2.1 true false
workflow-cps 2.10 true false
workflow-cps-global-lib 2.1 true false
workflow-durable-task-step 2.4 true false
workflow-job 2.4 true false
workflow-multibranch 2.8 true false
workflow-scm-step 2.2 true false
workflow-step-api 2.3 true false
workflow-support 2.2 true false
ws-cleanup 0.30 true falseSystem Properties awt.toolkit sun.awt.windows.WToolkit executable-war E:\pulsemail\jenkins.war file.encoding Cp1252 file.encoding.pkg sun.io file.separator \ hudson.diyChunking true hudson.lifecycle hudson.lifecycle.WindowsServiceLifecycle java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.awt.windows.WPrinterJob java.class.path E:\pulsemail\jenkins.war java.class.version 52.0 java.endorsed.dirs E:\pulsemail\jre\lib\endorsed java.ext.dirs E:\pulsemail\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext java.home E:\pulsemail\jre java.io.tmpdir C:\WINDOWS\TEMP\ java.library.path E:\pulsemail\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Groovy\Groovy-2.1.9\bin;C:\Program Files\SlikSvn\bin;C:\Program Files\Java\jre6\bin\client;C:\Program Files\gs\gs9.18\bin;. java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.8.0_66-b18 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.8.0_66 java.vm.info mixed mode java.vm.name Java HotSpot(TM) Client VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Oracle Corporation java.vm.version 25.66-b18 jna.loaded true jnidispatch.path C:\WINDOWS\TEMP\jna--1833998801\jna84923303253951737.dll line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true os.arch x86 os.name Windows 2003 os.version 5.2 path.separator ; sun.arch.data.model 32 sun.awt.enableExtraMouseButtons true sun.boot.class.path E:\pulsemail\jre\lib\resources.jar;E:\pulsemail\jre\lib\rt.jar;E:\pulsemail\jre\lib\sunrsasign.jar;E:\pulsemail\jre\lib\jsse.jar;E:\pulsemail\jre\lib\jce.jar;E:\pulsemail\jre\lib\charsets.jar;E:\pulsemail\jre\lib\jfr.jar;E:\pulsemail\jre\classes sun.boot.library.path E:\pulsemail\jre\bin sun.cpu.endian little sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 sun.desktop windows sun.io.unicode.encoding UnicodeLittle sun.java.command E:\pulsemail\jenkins.war --httpPort=8080 --webroot=E:\pulsemail\war sun.java.launcher SUN_STANDARD sun.jnu.encoding Cp1252 sun.management.compiler HotSpot Client Compiler sun.os.patch.level Service Pack 2 svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.country GB user.dir E:\pulsemail user.home C:\WINDOWS\system32\config\systemprofile user.language en user.name SYSTEM user.script user.timezone Europe/London user.variant Environment Variables Name ↓ Value ALLUSERSPROFILE C:\Documents and Settings\All Users BASE E:\pulsemail ClusterLog C:\WINDOWS\Cluster\cluster.log CommonProgramFiles C:\Program Files\Common Files COMPUTERNAME LPLEXSTST001 ComSpec C:\WINDOWS\system32\cmd.exe DEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection FP_NO_HOST_CHECK NO GROOVY_HOME C:\Program Files\Groovy\Groovy-2.1.9 JAVA_OPTS -Dhttp.proxyHost=10.30.0.2 -Dhttp.proxyPort=8080 -Dgrape.root=e:\tools\groovy-repo JENKINS_HOME E:\pulsemail NUMBER_OF_PROCESSORS 8 OS Windows_NT Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Groovy\Groovy-2.1.9\bin;C:\Program Files\SlikSvn\bin;C:\Program Files\Java\jre6\bin\client;C:\Program Files\gs\gs9.18\bin PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1 PROCESSOR_ARCHITECTURE x86 PROCESSOR_IDENTIFIER x86 Family 6 Model 23 Stepping 6, GenuineIntel PROCESSOR_LEVEL 6 PROCESSOR_REVISION 1706 ProgramFiles C:\Program Files PSModulePath C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\ SERVICE_ID jenkins SystemDrive C: SystemRoot C:\WINDOWS TEMP C:\WINDOWS\TEMP TMP C:\WINDOWS\TEMP USERPROFILE C:\Documents and Settings\Default User VSEDEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection windir C:\WINDOWS WINSW_EXECUTABLE E:\pulsemail\jenkins.exe Plugins Name ↓ Version Enabled Pinned ace-editor 1.1 true false ant 1.3 true false antisamy-markup-formatter 1.5 true false branch-api 1.10 true false build-monitor-plugin 1.10+build.201608030223 true false cloudbees-folder 5.12 true false credentials 2.1.4 true false credentials-binding 1.8 true false dashboard-view 2.9.10 true false durable-task 1.12 true false email-ext 2.47 true false external-monitor-job 1.6 true false files-found-trigger 1.4 true false git-client 1.19.7 true false git-server 1.7 true false handlebars 1.1.1 true false icon-shim 2.0.3 true false javadoc 1.4 true false jquery-detached 1.2.1 true false junit 1.15 true false ldap 1.12 true false locale 1.2 true false mailer 1.17 true false mapdb-api 1.0.9.0 true false matrix-auth 1.4 true false matrix-project 1.7.1 true false maven-plugin 2.13 true false mission-control-view 0.9.0 true false momentjs 1.1.1 true false pam-auth 1.3 true false pipeline-build-step 2.2 true false pipeline-input-step 2.0 true false pipeline-rest-api 1.7 true false pipeline-stage-step 2.1 true false pipeline-stage-view 1.7 true false plain-credentials 1.2 true false scm-api 1.2 true false script-security 1.21 true false simple-theme-plugin 0.3 true false ssh-credentials 1.12 true false ssh-slaves 1.11 true false structs 1.3 true false subversion 2.6 true false throttle-concurrents 1.9.0 true false timestamper 1.8.4 true false token-macro 1.12.1 true false windows-slaves 1.1 true false workflow-aggregator 2.2 true false workflow-api 2.1 true false workflow-basic-steps 2.1 true false workflow-cps 2.10 true false workflow-cps-global-lib 2.1 true false workflow-durable-task-step 2.4 true false workflow-job 2.4 true false workflow-multibranch 2.8 true false workflow-scm-step 2.2 true false workflow-step-api 2.3 true false workflow-support 2.2 true false ws-cleanup 0.30 true false
I am trying to do a simple housekeeping pipeline to delete old workspace dirs within Jenkins.
node {
stage 'Housekeeping stage'
echo "Deleting all old cell directories, older then ${env.MAXIMUM_CELL_LIVE} days"
new File("${env.phaser_dir}\\workspace
").eachDir() { dir ->
long diff = new Date().getTime() - dir.lastModified()
if (diff > env.MAXIMUM_CELL_LIVE.toInteger() * 24 * 60 * 60 * 1000)
}
}
The result is that it iterates only once each time, deleting just one directory.
I have latest version of Pipeline at 2.2. I've also googled there used to be problems like this with .each iterator, but that supposed to be fixed?
Many Thanks Michal
- duplicates
-
JENKINS-26481 Mishandling of binary methods accepting Closure
- Resolved