The configuration starts the correct configuration but the target configuration has variables that should be filled in by the user and are set to prompt in the promotion target configurations Variables section.
No variables gets prompted and the promotion build script crashes with a null-pointer exception since one of the variables in not set (I guess?).
This has worked previously but now it just don't. I have checked "Prompt Configuration Variables" in my promotion.
Is there something else that I have forgotten that need to be set for this to work?
I am using an existing promotion destination that has worked previously but I am using a new configuration that does the building (which is the one that is promoted).
I think the basic problem is that the variables that needs to be prompted is not prompted for and the null-pointer exception is a result of that.
Best regards,
Dan Engelbrecht
This is the detailed log from the build step:
14:13:35,252 [master@git.aphelion.se:35443] INFO - Executing pre-execute action...
14:13:35,268 [master@git.aphelion.se:35443] INFO - Getting changes of 'quasar' since build 'Topic.201503101355.SHB'...
14:13:35,269 [master@git.aphelion.se:35443] DEBUG - sync working directory [/var/opt/quickbuild/workspace/Deploy/EFX/SHB/APH-ST/quasar]...
14:13:35,269 [master@git.aphelion.se:35443] DEBUG - Detect whether repository settings have been changed ...
14:13:35,269 [master@git.aphelion.se:35443] DEBUG - Loading scm rc file ...
14:13:35,272 [master@git.aphelion.se:35443] DEBUG - Executing command: git fetch
14:13:35,272 [master@git.aphelion.se:35443] DEBUG - Command working directory: /var/opt/quickbuild/workspace/Deploy/EFX/SHB/APH-ST/quasar
14:13:35,272 [master@git.aphelion.se:35443] TRACE - Command execution environments:
TERM=cygwin
WRAPPER_FILE_SEPARATOR=/
SHLVL=2
JAVA_HOME=/usr/java/default
WRAPPER_OS=linux
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
WRAPPER_BIN_DIR=/opt/quickbuild-4.0.74/bin
MAIL=/var/spool/mail/build
PWD=/data/home/build
HOSTNAME=git.aphelion.se
WRAPPER_BITS=64
LOGNAME=build
WRAPPER_LANG=en
CVS_RSH=ssh
WRAPPER_HOST_NAME=git.aphelion.se
G_BROKEN_FILENAMES=1
_=/opt/quickbuild-4.0.74/bin/./wrapper-linux-x86-64
QTDIR=/usr/lib64/qt-3.3
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_33/jre/lib/amd64/server:/usr/java/jdk1.6.0_33/jre/lib/amd64:/usr/java/jdk1.6.0_33/jre/../lib/amd64
WRAPPER_WORKING_DIR=/opt/quickbuild-4.0.74/bin
SHELL=/bin/bash
HISTSIZE=1000
WRAPPER_PID=9936
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/build/bin
WRAPPER_ARCH=x86
QTINC=/usr/lib64/qt-3.3/include
WRAPPER_INIT_DIR=/data/home/build
USER=build
ANT_HOME=/usr/share/ant
QTLIB=/usr/lib64/qt-3.3/lib
HOME=/home/build
HISTCONTROL=ignoredups
LESSOPEN=|/usr/bin/lesspipe.sh %s
WRAPPER_CONF_DIR=/opt/quickbuild-4.0.74/conf
WRAPPER_HOSTNAME=git.aphelion.se
LANG=en_US.UTF-8
WRAPPER_PATH_SEPARATOR=:
14:13:36,277 [master@git.aphelion.se:35443] DEBUG - Executing command: git log -1 --date=raw --pretty=format:%cd 1d87c65e5a242a2df1cb8d0508b027c7297f2abb
14:13:36,277 [master@git.aphelion.se:35443] DEBUG - Command working directory: /var/opt/quickbuild/workspace/Deploy/EFX/SHB/APH-ST/quasar
14:13:36,277 [master@git.aphelion.se:35443] TRACE - Command execution environments:
TERM=cygwin
WRAPPER_FILE_SEPARATOR=/
SHLVL=2
JAVA_HOME=/usr/java/default
WRAPPER_OS=linux
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
WRAPPER_BIN_DIR=/opt/quickbuild-4.0.74/bin
MAIL=/var/spool/mail/build
PWD=/data/home/build
HOSTNAME=git.aphelion.se
WRAPPER_BITS=64
LOGNAME=build
WRAPPER_LANG=en
CVS_RSH=ssh
WRAPPER_HOST_NAME=git.aphelion.se
G_BROKEN_FILENAMES=1
_=/opt/quickbuild-4.0.74/bin/./wrapper-linux-x86-64
QTDIR=/usr/lib64/qt-3.3
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_33/jre/lib/amd64/server:/usr/java/jdk1.6.0_33/jre/lib/amd64:/usr/java/jdk1.6.0_33/jre/../lib/amd64
WRAPPER_WORKING_DIR=/opt/quickbuild-4.0.74/bin
SHELL=/bin/bash
HISTSIZE=1000
WRAPPER_PID=9936
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/build/bin
WRAPPER_ARCH=x86
QTINC=/usr/lib64/qt-3.3/include
WRAPPER_INIT_DIR=/data/home/build
USER=build
ANT_HOME=/usr/share/ant
QTLIB=/usr/lib64/qt-3.3/lib
HOME=/home/build
HISTCONTROL=ignoredups
LESSOPEN=|/usr/bin/lesspipe.sh %s
WRAPPER_CONF_DIR=/opt/quickbuild-4.0.74/conf
WRAPPER_HOSTNAME=git.aphelion.se
LANG=en_US.UTF-8
WRAPPER_PATH_SEPARATOR=:
14:13:36,281 [master@git.aphelion.se:35443] DEBUG - 1425987550 +0100
14:13:36,282 [master@git.aphelion.se:35443] DEBUG - Executing command: git log -1 --date=raw --pretty=format:%cd 1d87c65e5a242a2df1cb8d0508b027c7297f2abb
14:13:36,282 [master@git.aphelion.se:35443] DEBUG - Command working directory: /var/opt/quickbuild/workspace/Deploy/EFX/SHB/APH-ST/quasar
14:13:36,282 [master@git.aphelion.se:35443] TRACE - Command execution environments:
TERM=cygwin
WRAPPER_FILE_SEPARATOR=/
SHLVL=2
JAVA_HOME=/usr/java/default
WRAPPER_OS=linux
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
WRAPPER_BIN_DIR=/opt/quickbuild-4.0.74/bin
MAIL=/var/spool/mail/build
PWD=/data/home/build
HOSTNAME=git.aphelion.se
WRAPPER_BITS=64
LOGNAME=build
WRAPPER_LANG=en
CVS_RSH=ssh
WRAPPER_HOST_NAME=git.aphelion.se
G_BROKEN_FILENAMES=1
_=/opt/quickbuild-4.0.74/bin/./wrapper-linux-x86-64
QTDIR=/usr/lib64/qt-3.3
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_33/jre/lib/amd64/server:/usr/java/jdk1.6.0_33/jre/lib/amd64:/usr/java/jdk1.6.0_33/jre/../lib/amd64
WRAPPER_WORKING_DIR=/opt/quickbuild-4.0.74/bin
SHELL=/bin/bash
HISTSIZE=1000
WRAPPER_PID=9936
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/build/bin
WRAPPER_ARCH=x86
QTINC=/usr/lib64/qt-3.3/include
WRAPPER_INIT_DIR=/data/home/build
USER=build
ANT_HOME=/usr/share/ant
QTLIB=/usr/lib64/qt-3.3/lib
HOME=/home/build
HISTCONTROL=ignoredups
LESSOPEN=|/usr/bin/lesspipe.sh %s
WRAPPER_CONF_DIR=/opt/quickbuild-4.0.74/conf
WRAPPER_HOSTNAME=git.aphelion.se
LANG=en_US.UTF-8
WRAPPER_PATH_SEPARATOR=:
14:13:36,285 [master@git.aphelion.se:35443] DEBUG - 1425987550 +0100
14:13:36,286 [master@git.aphelion.se:35443] DEBUG - Executing command: git config --replace-all core.quotepath false
14:13:36,286 [master@git.aphelion.se:35443] DEBUG - Command working directory: /var/opt/quickbuild/workspace/Deploy/EFX/SHB/APH-ST/quasar
14:13:36,286 [master@git.aphelion.se:35443] TRACE - Command execution environments:
TERM=cygwin
WRAPPER_FILE_SEPARATOR=/
SHLVL=2
JAVA_HOME=/usr/java/default
WRAPPER_OS=linux
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
WRAPPER_BIN_DIR=/opt/quickbuild-4.0.74/bin
MAIL=/var/spool/mail/build
PWD=/data/home/build
HOSTNAME=git.aphelion.se
WRAPPER_BITS=64
LOGNAME=build
WRAPPER_LANG=en
CVS_RSH=ssh
WRAPPER_HOST_NAME=git.aphelion.se
G_BROKEN_FILENAMES=1
_=/opt/quickbuild-4.0.74/bin/./wrapper-linux-x86-64
QTDIR=/usr/lib64/qt-3.3
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_33/jre/lib/amd64/server:/usr/java/jdk1.6.0_33/jre/lib/amd64:/usr/java/jdk1.6.0_33/jre/../lib/amd64
WRAPPER_WORKING_DIR=/opt/quickbuild-4.0.74/bin
SHELL=/bin/bash
HISTSIZE=1000
WRAPPER_PID=9936
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/build/bin
WRAPPER_ARCH=x86
QTINC=/usr/lib64/qt-3.3/include
WRAPPER_INIT_DIR=/data/home/build
USER=build
ANT_HOME=/usr/share/ant
QTLIB=/usr/lib64/qt-3.3/lib
HOME=/home/build
HISTCONTROL=ignoredups
LESSOPEN=|/usr/bin/lesspipe.sh %s
WRAPPER_CONF_DIR=/opt/quickbuild-4.0.74/conf
WRAPPER_HOSTNAME=git.aphelion.se
LANG=en_US.UTF-8
WRAPPER_PATH_SEPARATOR=:
14:13:36,325 [master@git.aphelion.se:35443] DEBUG - Executing command: git log --name-status --pretty=raw 1d87c65e5a242a2df1cb8d0508b027c7297f2abb..1d87c65e5a242a2df1cb8d0508b027c7297f2abb
14:13:36,325 [master@git.aphelion.se:35443] DEBUG - Command working directory: /var/opt/quickbuild/workspace/Deploy/EFX/SHB/APH-ST/quasar
14:13:36,325 [master@git.aphelion.se:35443] TRACE - Command execution environments:
TERM=cygwin
WRAPPER_FILE_SEPARATOR=/
SHLVL=2
JAVA_HOME=/usr/java/default
WRAPPER_OS=linux
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
WRAPPER_BIN_DIR=/opt/quickbuild-4.0.74/bin
MAIL=/var/spool/mail/build
PWD=/data/home/build
HOSTNAME=git.aphelion.se
WRAPPER_BITS=64
LOGNAME=build
WRAPPER_LANG=en
CVS_RSH=ssh
WRAPPER_HOST_NAME=git.aphelion.se
G_BROKEN_FILENAMES=1
_=/opt/quickbuild-4.0.74/bin/./wrapper-linux-x86-64
QTDIR=/usr/lib64/qt-3.3
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_33/jre/lib/amd64/server:/usr/java/jdk1.6.0_33/jre/lib/amd64:/usr/java/jdk1.6.0_33/jre/../lib/amd64
WRAPPER_WORKING_DIR=/opt/quickbuild-4.0.74/bin
SHELL=/bin/bash
HISTSIZE=1000
WRAPPER_PID=9936
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/build/bin
WRAPPER_ARCH=x86
QTINC=/usr/lib64/qt-3.3/include
WRAPPER_INIT_DIR=/data/home/build
USER=build
ANT_HOME=/usr/share/ant
QTLIB=/usr/lib64/qt-3.3/lib
HOME=/home/build
HISTCONTROL=ignoredups
LESSOPEN=|/usr/bin/lesspipe.sh %s
WRAPPER_CONF_DIR=/opt/quickbuild-4.0.74/conf
WRAPPER_HOSTNAME=git.aphelion.se
LANG=en_US.UTF-8
WRAPPER_PATH_SEPARATOR=:
14:13:36,330 [master@git.aphelion.se:35443] INFO - Getting changes of 'Saturnalia Linux Nightly' since build 'Topic.201503101355.SHB'...
14:13:36,943 [master@git.aphelion.se:35443] INFO - Running step...
14:13:36,959 [master>Deploy to server@git.aphelion.se:35443] INFO - Checking step execute condition...
14:13:36,969 [master@git.aphelion.se:35443] INFO - Executing post-execute action...
14:13:36,969 [master@git.aphelion.se:35443] ERROR - Step 'master' is failed.
java.lang.RuntimeException: Error executing grid job
at com.pmease.quickbuild.grid.GridTaskFuture.get(GridTaskFuture.java:63)
at com.pmease.quickbuild.grid.GridTaskFuture.get(GridTaskFuture.java:81)
at com.pmease.quickbuild.stepsupport.SequentialStep.triggerChildren(SequentialStep.java:36)
at com.pmease.quickbuild.stepsupport.CompositeStep.run(CompositeStep.java:97)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:491)
at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:29)
at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:47)
at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:61)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:78)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.pmease.quickbuild.variable.VariableWrapper.getBooleanValue(VariableWrapper.java:221)
at com.pmease.quickbuild.variable.VariableWrapper.asBoolean(VariableWrapper.java:231)
at com.pmease.quickbuild.setting.step.executecondition.VariableExecuteCondition.satisfied(VariableExecuteCondition.java:48)
at com.pmease.quickbuild.setting.step.executecondition.VariableExecuteCondition$$EnhancerByCGLIB$$101cf406.CGLIB$satisfied$0(<generated>)
at com.pmease.quickbuild.setting.step.executecondition.VariableExecuteCondition$$EnhancerByCGLIB$$101cf406$$FastClassByCGLIB$$e74148ae.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:270)
at com.pmease.quickbuild.setting.step.executecondition.VariableExecuteCondition$$EnhancerByCGLIB$$101cf406.satisfied(<generated>)
at com.pmease.quickbuild.setting.step.executecondition.AndExecuteCondition.satisfied(AndExecuteCondition.java:29)
at com.pmease.quickbuild.setting.step.executecondition.AndExecuteCondition$$EnhancerByCGLIB$$ee249d9d.CGLIB$satisfied$0(<generated>)
at com.pmease.quickbuild.setting.step.executecondition.AndExecuteCondition$$EnhancerByCGLIB$$ee249d9d$$FastClassByCGLIB$$8885947c.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:270)
at com.pmease.quickbuild.setting.step.executecondition.AndExecuteCondition$$EnhancerByCGLIB$$ee249d9d.satisfied(<generated>)
at com.pmease.quickbuild.stepsupport.Step.shouldExecute(Step.java:682)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$e9f20fe8.CGLIB$shouldExecute$76(<generated>)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$e9f20fe8$$FastClassByCGLIB$$cdc08ac.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:270)
at com.pmease.quickbuild.plugin.basis.CommandBuildStep$$EnhancerByCGLIB$$e9f20fe8.shouldExecute(<generated>)
at com.pmease.quickbuild.stepsupport.StepProcessJob.executeStepAwareJob(StepProcessJob.java:32)
... 4 more