CCNET returns incorrect CCNetLabel value at first time build with filelabeller and selectparameter

Added by Ron Ling over 4 years ago

Hi fellows,

I am with CCNET 1.6.7981.1 at the moment, and am having this issue where CCNetLabel returns the first line from a specified file via <filelabeller> instead of a user-specified value from <selectparameter> at its first time building. However for the 2nd time and onwards, it returns user-specified value correctly.

On the other side of this coin, is there a way to assign a dynamic value $(BuildVersion)/$[BuildVersion] to the pre-defined property $CCNetLabel?

Much appreciated if I can pick your brain on this one. See below the project config that produces this issue.

<cb:define name="parameters_cvo_select">
    <parameters>
        <selectParameter>
          <name>BuildVersion</name>
          <display>Choose an existing build to deploy</display>
          <description>Select an exsiting build to deploy:</description>
          <sourceFile>_VersionList.number</sourceFile>
          <required>true</required>
        </selectParameter>
    </parameters>
</cb:define>

<cb:define name="labeller_cvo_file">
    <labeller type="fileLabeller">
        <labelFilePath>_postfix.number</labelFilePath>
        <prefix>_$[BuildVersion]</prefix>
        <allowDuplicateSubsequentLabels>true</allowDuplicateSubsequentLabels>      
    </labeller>    
</cb:define>

<project     name="MyProj_1" 
                queue="Q2" 
                queuePriority="1">                          
    <cb:parameters_cvo_select/>
    <cb:labeller_cvo_file/>    
    <tasks>        
        <parallel>
          <tasks>            
          </tasks>
        </parallel>
    </tasks>
    <cb:security_adminOnly />        
    <publishers>
        <modificationHistory onlyLogWhenChangesFound="true" />
      <xmllogger />
     <cb:email_always_adminOnly />
    </publishers>
    <externalLinks>
    </externalLinks>
</project>

Replies (1)

(1-1/1)