-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
System Properties
Name ↓
Value
awt.toolkit sun.awt.X11.XToolkit
executable-war /var/local/jenkins/wars/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /var/local/jenkins/wars/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/java/jdk1.8.0_102_x64/jre/lib/endorsed
java.ext.dirs /usr/java/jdk1.8.0_102_x64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/java/jdk1.8.0_102_x64/jre
java.io.tmpdir /var/local/jenkins/indeedu/tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.net.useSystemProxies true
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.8.0_102-b14
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_102
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.8
java.vm.vendor Oracle Corporation
java.vm.version 25.102-b14
javamelody.About Monitoring https://wiki.jenkins-ci.org/display/JENKINS/Monitoring
javamelody.analytics-id UA-1335263-7
javamelody.custom-reports Jenkins Info,About Monitoring
javamelody.gzip-compression-disabled true
javamelody.http-transform-pattern /\d+/|/site/.+|avadoc/.+|/ws/.+|obertura/.+|estReport/.+|iolations/file/.+|/user/.+|/static/\w+/|/adjuncts/\w+/|/bound/[\w\-]+
javamelody.Jenkins Info /systemInfo
javamelody.no-database true
javamelody.storage-directory //var/local/jenkins/indeedu/monitoring
javamelody.system-actions-enabled true
jenkins.security.FrameOptionsPageDecorator.enabled false
jna.loaded true
jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib:/lib/i686/nosegneg:/usr/lib64/qt-3.3/lib:/opt/python27/lib
jnidispatch.path /var/local/jenkins/indeedu/tmp/jna--1712433994/jna3996547683297906175.tmp
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 2.6.32-642.13.1.el6.x86_64
path.separator :
pid 16668
sun.arch.data.model 64
sun.boot.class.path /usr/java/jdk1.8.0_102_x64/jre/lib/resources.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/rt.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/sunrsasign.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/jsse.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/jce.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/charsets.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/jfr.jar:/usr/java/jdk1.8.0_102_x64/jre/classes
sun.boot.library.path /usr/java/jdk1.8.0_102_x64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /var/local/jenkins/wars/jenkins.war
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 /
user.home /home/jenkins
user.language en
user.name jenkins
user.timezone America/Chicago
Environment Variables
Name ↓
Value
BASH_FUNC_restart() () { stop;
start
}
BASH_FUNC_start() () { echo "Starting supervisord: ";
if [ -e $PIDFILE ]; then
echo "ALREADY STARTED";
return 1;
fi;
/usr/bin/supervisord $OPTIONS;
/usr/bin/supervisorctl $OPTIONS status;
[ -e $PIDFILE ] && touch /var/lock/subsys/supervisord
}
BASH_FUNC_stop() () { echo -n "Stopping supervisord: ";
/usr/bin/supervisorctl $OPTIONS shutdown;
if [ -n "$WAIT_FOR_SUBPROCESSES" ]; then
echo "Waiting roughly 60 seconds for $PIDFILE to be removed after child processes exit";
for sleep in 2 2 2 2 4 4 4 4 8 8 8 8 last;
do
if [ ! -e $PIDFILE ]; then
echo "Supervisord exited as expected in under $total_sleep seconds";
break;
else
if [[ $sleep -eq "last" ]]; then
echo "Supervisord still working on shutting down. We've waited roughly 60 seconds, we'll let it do its thing from here";
return 1;
else
sleep $sleep;
total_sleep=$(( $total_sleep + $sleep ));
fi;
fi;
done;
fi;
rm -f /var/lock/subsys/supervisord
}
CONSOLETYPE serial
JENKINS_HOME /var/local/jenkins/indeedu
LANG en_US.UTF-8
LANGSH_SOURCED 1
NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat
OPTIONS -c /etc/supervisord.conf
PATH /sbin:/usr/sbin:/bin:/usr/bin
PIDFILE /var/run/supervisord.pid
previous N
PREVLEVEL N
PWD /
RETVAL 0
runlevel 3
SHLVL 2
SUPERVISOR_ENABLED 1
SUPERVISOR_GROUP_NAME jenkins-indeedu
SUPERVISOR_PROCESS_NAME jenkins-indeedu
SUPERVISOR_SERVER_URL unix:///var/run/supervisor.sock
TERM linux
UPSTART_EVENTS runlevel
UPSTART_INSTANCE
UPSTART_JOB rc
WAIT_FOR_SUBPROCESSES yes
XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt
Plugins
Name ↓
Version
Enabled
Pinned
ace-editor 1.1 true false
ant 1.3 true false
antisamy-markup-formatter 1.5 true false
approving-account-plugin 0.0.1-SNAPSHOT (private-1b5561ab-dwayne) true false
arc-jenkins-plugin 1.7-SNAPSHOT (private-a40da784-jenkins) true false
authentication-tokens 1.3 true false
aws-credentials 1.16 true false
aws-java-sdk 1.11.37 true false
blueocean 1.0-alpha-2 false false
blueocean-commons 1.0-alpha-2 false false
blueocean-dashboard 1.0-alpha-2 false false
blueocean-events 1.0-alpha-2 false false
blueocean-personalization 1.0-alpha-2 false false
blueocean-rest 1.0-alpha-2 false false
blueocean-rest-impl 1.0-alpha-2 false false
blueocean-web 1.0-alpha-2 false false
bouncycastle-api 2.16.0 true false
branch-api 1.11.1 true false
build-timeout 1.18 true false
cloudbees-folder 5.12 true false
copyartifact 1.38.1 true false
credentials 2.1.10 true false
credentials-binding 1.10 true false
dashboard-view 2.9.10 true false
display-url-api 0.5 true false
docker-commons 1.6 true false
docker-custom-build-environment 1.6.6-SNAPSHOT (private-93dd351e-dwayne) true false
docker-workflow 1.9.1 true false
durable-task 1.12 true false
email-ext 2.53 true false
external-monitor-job 1.4 true false
favorite 1.16 true false
git 3.0.1 true false
git-changelog 1.41 true false
git-client 2.2.1 true false
git-parameter 0.7.1 true false
git-server 1.6 true false
github 1.19.2 true false
github-api 1.76 true false
github-branch-source 1.8.1 true false
gitlab-plugin 1.4.4 true false
gradle 1.24 true false
handlebars 1.1.1 true false
icon-shim 2.0.3 true false
jackson2-api 2.7.3 true false
jacoco 2.2.0 true false
javadoc 1.4 true false
jira 2.3 true false
job-dsl 1.48 true false
job-restrictions 0.6 true false
jobConfigHistory 2.15 true false
jquery 1.11.2-0 true false
jquery-detached 1.2.1 true false
junit 1.14 true false
ldap 1.12 true false
lockable-resources 1.10 true false
mailer 1.18 true false
mapdb-api 1.0.9.0 true false
mask-passwords 2.8 true false
matrix-auth 1.4 true false
matrix-project 1.7.1 true false
maven-plugin 2.13 true false
metrics 3.1.2.8 true false
momentjs 1.1.1 true false
monitoring 1.60.0 true false
nodejs 0.2.1 true false
pam-auth 1.3 true false
pipeline-build-step 2.4 true false
pipeline-graph-analysis 1.3 true false
pipeline-indeed-input-step 0.0.1-SNAPSHOT (private-233aed14-jdawson) true false
pipeline-input-step 2.5 true false
pipeline-milestone-step 1.3 true false
pipeline-rest-api 2.4 true false
pipeline-stage-step 2.2 true false
pipeline-stage-view 2.4 true false
plain-credentials 1.3 true false
run-condition 1.0 true false
rundeck 3.5.4 true false
sauce-ondemand 1.159 true false
scalable-amazon-ecs 1.0 false false
scm-api 1.3 true false
script-security 1.25 true false
slack 2.1 true false
sse-gateway 1.4 true false
ssh-agent 1.13 true false
ssh-credentials 1.12 true false
ssh-slaves 1.12 true false
structs 1.5 true false
subversion 2.6 true false
thinBackup 1.7.4 true false
timestamper 1.8.4 true false
token-macro 2.0 true false
variant 1.0 true false
windows-slaves 1.1 true false
workflow-aggregator 2.4 true false
workflow-api 2.8 true false
workflow-basic-steps 2.3 true false
workflow-cps 2.24 true false
workflow-cps-global-lib 2.5 true false
workflow-durable-task-step 2.8 true false
workflow-job 2.9 true false
workflow-multibranch 2.9.2 true false
workflow-scm-step 2.3 true false
workflow-step-api 2.9 true false
workflow-support 2.12 true false
ws-cleanup 0.29 true false
xframe-filter-plugin 1.2 true falseSystem Properties Name ↓ Value awt.toolkit sun.awt.X11.XToolkit executable-war /var/local/jenkins/wars/jenkins.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path /var/local/jenkins/wars/jenkins.war java.class.version 52.0 java.endorsed.dirs /usr/java/jdk1.8.0_102_x64/jre/lib/endorsed java.ext.dirs /usr/java/jdk1.8.0_102_x64/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/java/jdk1.8.0_102_x64/jre java.io.tmpdir /var/local/jenkins/indeedu/tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.net.useSystemProxies true java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.8.0_102-b14 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_102 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.8 java.vm.vendor Oracle Corporation java.vm.version 25.102-b14 javamelody.About Monitoring https://wiki.jenkins-ci.org/display/JENKINS/Monitoring javamelody.analytics-id UA-1335263-7 javamelody.custom-reports Jenkins Info,About Monitoring javamelody.gzip-compression-disabled true javamelody.http-transform-pattern /\d+/|/site/.+|avadoc/.+|/ws/.+|obertura/.+|estReport/.+|iolations/file/.+|/user/.+|/static/\w+/|/adjuncts/\w+/|/bound/[\w\-]+ javamelody.Jenkins Info /systemInfo javamelody.no-database true javamelody.storage-directory //var/local/jenkins/indeedu/monitoring javamelody.system-actions-enabled true jenkins.security.FrameOptionsPageDecorator.enabled false jna.loaded true jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib:/lib/i686/nosegneg:/usr/lib64/qt-3.3/lib:/opt/python27/lib jnidispatch.path /var/local/jenkins/indeedu/tmp/jna--1712433994/jna3996547683297906175.tmp line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true os.arch amd64 os.name Linux os.version 2.6.32-642.13.1.el6.x86_64 path.separator : pid 16668 sun.arch.data.model 64 sun.boot.class.path /usr/java/jdk1.8.0_102_x64/jre/lib/resources.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/rt.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/sunrsasign.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/jsse.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/jce.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/charsets.jar:/usr/java/jdk1.8.0_102_x64/jre/lib/jfr.jar:/usr/java/jdk1.8.0_102_x64/jre/classes sun.boot.library.path /usr/java/jdk1.8.0_102_x64/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command /var/local/jenkins/wars/jenkins.war 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 / user.home /home/jenkins user.language en user.name jenkins user.timezone America/Chicago Environment Variables Name ↓ Value BASH_FUNC_restart() () { stop; start } BASH_FUNC_start() () { echo "Starting supervisord: "; if [ -e $PIDFILE ]; then echo "ALREADY STARTED"; return 1; fi; /usr/bin/supervisord $OPTIONS; /usr/bin/supervisorctl $OPTIONS status; [ -e $PIDFILE ] && touch /var/lock/subsys/supervisord } BASH_FUNC_stop() () { echo -n "Stopping supervisord: "; /usr/bin/supervisorctl $OPTIONS shutdown; if [ -n "$WAIT_FOR_SUBPROCESSES" ]; then echo "Waiting roughly 60 seconds for $PIDFILE to be removed after child processes exit"; for sleep in 2 2 2 2 4 4 4 4 8 8 8 8 last; do if [ ! -e $PIDFILE ]; then echo "Supervisord exited as expected in under $total_sleep seconds"; break; else if [[ $sleep -eq "last" ]]; then echo "Supervisord still working on shutting down. We've waited roughly 60 seconds, we'll let it do its thing from here"; return 1; else sleep $sleep; total_sleep=$(( $total_sleep + $sleep )); fi; fi; done; fi; rm -f /var/lock/subsys/supervisord } CONSOLETYPE serial JENKINS_HOME /var/local/jenkins/indeedu LANG en_US.UTF-8 LANGSH_SOURCED 1 NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat OPTIONS -c /etc/supervisord.conf PATH /sbin:/usr/sbin:/bin:/usr/bin PIDFILE /var/run/supervisord.pid previous N PREVLEVEL N PWD / RETVAL 0 runlevel 3 SHLVL 2 SUPERVISOR_ENABLED 1 SUPERVISOR_GROUP_NAME jenkins-indeedu SUPERVISOR_PROCESS_NAME jenkins-indeedu SUPERVISOR_SERVER_URL unix:///var/run/supervisor.sock TERM linux UPSTART_EVENTS runlevel UPSTART_INSTANCE UPSTART_JOB rc WAIT_FOR_SUBPROCESSES yes XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt Plugins Name ↓ Version Enabled Pinned ace-editor 1.1 true false ant 1.3 true false antisamy-markup-formatter 1.5 true false approving-account-plugin 0.0.1-SNAPSHOT (private-1b5561ab-dwayne) true false arc-jenkins-plugin 1.7-SNAPSHOT (private-a40da784-jenkins) true false authentication-tokens 1.3 true false aws-credentials 1.16 true false aws-java-sdk 1.11.37 true false blueocean 1.0-alpha-2 false false blueocean-commons 1.0-alpha-2 false false blueocean-dashboard 1.0-alpha-2 false false blueocean-events 1.0-alpha-2 false false blueocean-personalization 1.0-alpha-2 false false blueocean-rest 1.0-alpha-2 false false blueocean-rest-impl 1.0-alpha-2 false false blueocean-web 1.0-alpha-2 false false bouncycastle-api 2.16.0 true false branch-api 1.11.1 true false build-timeout 1.18 true false cloudbees-folder 5.12 true false copyartifact 1.38.1 true false credentials 2.1.10 true false credentials-binding 1.10 true false dashboard-view 2.9.10 true false display-url-api 0.5 true false docker-commons 1.6 true false docker-custom-build-environment 1.6.6-SNAPSHOT (private-93dd351e-dwayne) true false docker-workflow 1.9.1 true false durable-task 1.12 true false email-ext 2.53 true false external-monitor-job 1.4 true false favorite 1.16 true false git 3.0.1 true false git-changelog 1.41 true false git-client 2.2.1 true false git-parameter 0.7.1 true false git-server 1.6 true false github 1.19.2 true false github-api 1.76 true false github-branch-source 1.8.1 true false gitlab-plugin 1.4.4 true false gradle 1.24 true false handlebars 1.1.1 true false icon-shim 2.0.3 true false jackson2-api 2.7.3 true false jacoco 2.2.0 true false javadoc 1.4 true false jira 2.3 true false job-dsl 1.48 true false job-restrictions 0.6 true false jobConfigHistory 2.15 true false jquery 1.11.2-0 true false jquery-detached 1.2.1 true false junit 1.14 true false ldap 1.12 true false lockable-resources 1.10 true false mailer 1.18 true false mapdb-api 1.0.9.0 true false mask-passwords 2.8 true false matrix-auth 1.4 true false matrix-project 1.7.1 true false maven-plugin 2.13 true false metrics 3.1.2.8 true false momentjs 1.1.1 true false monitoring 1.60.0 true false nodejs 0.2.1 true false pam-auth 1.3 true false pipeline-build-step 2.4 true false pipeline-graph-analysis 1.3 true false pipeline-indeed-input-step 0.0.1-SNAPSHOT (private-233aed14-jdawson) true false pipeline-input-step 2.5 true false pipeline-milestone-step 1.3 true false pipeline-rest-api 2.4 true false pipeline-stage-step 2.2 true false pipeline-stage-view 2.4 true false plain-credentials 1.3 true false run-condition 1.0 true false rundeck 3.5.4 true false sauce-ondemand 1.159 true false scalable-amazon-ecs 1.0 false false scm-api 1.3 true false script-security 1.25 true false slack 2.1 true false sse-gateway 1.4 true false ssh-agent 1.13 true false ssh-credentials 1.12 true false ssh-slaves 1.12 true false structs 1.5 true false subversion 2.6 true false thinBackup 1.7.4 true false timestamper 1.8.4 true false token-macro 2.0 true false variant 1.0 true false windows-slaves 1.1 true false workflow-aggregator 2.4 true false workflow-api 2.8 true false workflow-basic-steps 2.3 true false workflow-cps 2.24 true false workflow-cps-global-lib 2.5 true false workflow-durable-task-step 2.8 true false workflow-job 2.9 true false workflow-multibranch 2.9.2 true false workflow-scm-step 2.3 true false workflow-step-api 2.9 true false workflow-support 2.12 true false ws-cleanup 0.29 true false xframe-filter-plugin 1.2 true false
We received an NPE with the following stacktrace from the milestone step:
org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution.cancelOldersInSight(MilestoneStepExecution.java:265) at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution.tryToPass(MilestoneStepExecution.java:161) at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution.run(MilestoneStepExecution.java:80) at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution.run(MilestoneStepExecution.java:65) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:42) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:184) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:108) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:18) at com.indeed.pipeline.Milestones.passDeployMilestone(file:/var/local/jenkins/indeedu/jobs/indeedone--indeedone-webapp/builds/186/libs/pipeline/src/com/indeed/pipeline/Milestones.groovy:78) at com.indeed.pipeline.Milestones.passQaMilestone(file:/var/local/jenkins/indeedu/jobs/indeedone--indeedone-webapp/builds/186/libs/pipeline/src/com/indeed/pipeline/Milestones.groovy:36) at deployToQa.call(/var/local/jenkins/indeedu/jobs/indeedone--indeedone-webapp/builds/186/libs/pipeline/vars/deployToQa.groovy:30) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor383.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) at sun.reflect.GeneratedMethodAccessor389.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.LocalVariableBlock$LocalVariable.get(LocalVariableBlock.java:39) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue(LocalVariableBlock.java:28) at com.cloudbees.groovy.cps.LValueBlock$BlockImpl.eval(LValueBlock.java:55) at com.cloudbees.groovy.cps.LValueBlock.eval(LValueBlock.java:16) at com.cloudbees.groovy.cps.Next.step(Next.java:58) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:163) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:63) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
when calling the milestone step passing a single arg (ordinal - positive integer). It appears as though the call to Run.getBuildByNumber() on the line before the offending line can potentially return null and needs a guard against it.