-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
Using 0.8.2-snapshot + hudson 1.278
I have created a matrix build using 2 nodes (master and one slave) and a second
axis of TUXVER using the values 8,9,10,11.
Content of build steps is
echo "TUXVER= $TUXVER"
echo "WORKSPACE: $WORKSPACE"
echo "CLEARCASE_VIEWPATH: $CLEARCASE_VIEWPATH"
echo "CLEARCASE_VIEWNAME: $CLEARCASE_VIEWNAME"
Running this build shows that the two CC environment variables are expanded
incorrectly when given to the build step. They appear correctly expanded when
creating the views. It looks like a race condition, the project.name has the
wrong value when we are expanding.
Relevant part of logs are below
Build: TUXVER=8,master
cleartool mkview hudson_test_matrix_node-master_job-TUXVER=8,label=master_view
TUXVER= 8
WORKSPACE:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/8/label/master
CLEARCASE_VIEWPATH:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/8/label/master/hudson_test_matrix_node-master_job-TUXVER=11,label=master_view
CLEARCASE_VIEWNAME: hudson_test_matrix_node-master_job-TUXVER=11,label=master_view
Build: TUXVER=9,master
mkview -snapshot hudson_test_matrix_node-master_job-TUXVER=9,label=master_view
TUXVER= 9
WORKSPACE:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/9/label/master
CLEARCASE_VIEWPATH:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/9/label/master/hudson_test_matrix_node-master_job-TUXVER=8,label=master_view
CLEARCASE_VIEWNAME: hudson_test_matrix_node-master_job-TUXVER=8,label=master_view
Build: TUXVER=10,master
cleartool mkview -snapshot
hudson_test_matrix_node-master_job-TUXVER=10,label=master_view
TUXVER= 10
WORKSPACE:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/10/label/master
CLEARCASE_VIEWPATH:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/10/label/master/hudson_test_matrix_node-master_job-TUXVER=10,label=master_view
CLEARCASE_VIEWNAME: hudson_test_matrix_node-master_job-TUXVER=10,label=master_view
Build: TUXVER=11,master
cleartool mkview -snapshot
hudson_test_matrix_node-master_job-TUXVER=11,label=master_view
WORKSPACE:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/11/label/master
CLEARCASE_VIEWPATH:
/export/home/ciuser/hudson/jobs/test_hudson_matrix/workspace/TUXVER/11/label/master/hudson_test_matrix_node-master_job-TUXVER=11,label=master_view
CLEARCASE_VIEWNAME: hudson_test_matrix_node-master_job-TUXVER=11,label=master_view
Sometime the values are right.. e.g. when providing this example the values on
the slave was correct, but it is not consistent. Think it has something to do
with the executers and timing...
I am unsure if this is a ClearCase Plugin or a hudson problem, as far as I can
see we don't do any inappropiate cacheing