Hi There,
we use CI Version 1.9.2.1106. In the first Step of our Configuration we start a Commandline which includes a few Variables. Like that:
set BuildVersion=%VerProject%.%VerBuild%.0.%VerRevision%
echo @@continua[setVariable name=‘DelphiVersion’ value=‘D28’]
echo @@continua[setVariable name=‘DelphiAgentVersion’ value=‘D113’]
Continua Log:
C:\CI_AWS\Ws\33743\Source\source>echo @@continua[setVariable name=‘DelphiVersion’ value=‘D28’]
Variable ‘%delphiversion%’ has been set to ‘D28’.
C:\CI_AWS\Ws\33743\Source\source>echo @@continua[setVariable name=‘DelphiAgentVersion’ value=‘D113’]
Variable ‘%delphiagentversion%’ has been set to ‘D113’.
That works fine for years.
After Updating CI to the latest Version it stopps Working.
Log shows setting the new Values to the variables is korrekt.
But the Variable-Values in CI System doesnt update.
Thanks for sending the log, but we don’t see where you are actually using the variable values.
Where can you see that they are not updated?
Note that build variables which are available during the build process, and are set when using Set Variable actions and set-variable log messages, are discarded at the end of the build. This has always been the case. The only way to keep the variable values after the build has finished is to use the Persist Build Variables build event handler to store the value in configuration variables and project variables.
In Post two you see, that we set the DelphiAgentVersion to “D113” in the batch. But the Build-Variable doesnt change and dont have a mark that it was updated
I used a .bat file, but your log shows the values are being set so it’s not the action that is causing the issue, something further on. We’ll do some further testing tomorrow. Perhaps you could export your configuration and send us that, so we can use that to reproduce.