Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Promote does not prompt for promotion target variables #3145

daneng ·
I have a build that I want to launch a promote of to a second configuration.

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
  • replies 9
  • views 5516
  • stars 0
daneng ·
If I define the variable as part of the Promotion (Variables section) it works as expected but it used to work with having it defined as "Prompt" in the promotion target configuration.

And we have not changed quickbuild installation or anything. It is almost as if the "Prompt Configuration Variables" checkbox is ignored...?
robinshen ADMIN ·
There is an option "Prompt Configuration Variables" defined in promotion. If set to no, QB will not prompt variables defined in target configuration.
daneng ·
There is an option "Prompt Configuration Variables" defined in promotion. If set to no, QB will not prompt variables defined in target configuration.


Yes, as stated in my second comment I have checked "Prompt Configuration Variables" but it does not seem to have any effect.

Best regards,
Dan
robinshen ADMIN ·
Does the same variable defined in the promotion setting? If yes, variables defined in promotion setting will override those with the same name defined in target configuration. If not, please send me your database backup to [robin AT pmease DOT com], and let me know which configuration and build to look at.
mart ·
Is it somehow possible to avoid the promotion of variables stored in the source build (displayed in variables tab of the build)?

It seems that only some variables that I see in the variables tab of the configuration that triggered the promotion are promoted to the other configuration.

I saw as well that there is a ticket (http://track.pmease.com/browse/QB-664) which should enable/disable this behaviour, but cannot find any option for this in QB 6.0
robinshen ADMIN ·
Variables in source build will always been visible in target build, unless you override it in target configuration, or in promotion definition. For a certain variable, the order for search is:
1. Variables defined in promotion
2. Variables defined in destination configuration and its ancestors
3. Variables stored in the source build (displayed in variables tab of the build)
mart ·
I have a promotion which promotes as well a variable X from the source build (A) to the target build (B). Inside B the promoted variable X from A does not exist explicitly. Once B is finished there is another promotion to C. This promotion is promoting a variable with the same name X that got promoted from A to B. This variable is filled with a new value (build.version) and is used in B together with an QuickbuildRepository to checkout published artifacts from A using X (checkout with build version).

The problem is that the checkout is done using the value that got promoted from A and not the value set in the promotion B->C.

The weird thing is that in the variables tab of C the value of the promoted variable is the con from B->C and not A->B but the checked out repository is still using the value from A->B instead B->C.

Any idea what is going on here?
robinshen ADMIN ·
Can you please demonstrate the issue with a simple database, and send me [robin AT pmease DOT com] the database backup (use QB administration / database backup)?
mart ·
It is really strange. I created a simple example and this one works. I will let you know once I find an example that reproduces this issue or once I find the issue on my side.