String manipulation functionality

Comments

1 comment

  • Avatar
    juanjo

    Once you have the build_number, you could use the below code to pad it:

    <setInstallerVariableFromRegEx>
        <name>padded_build_number</name>
        <pattern>.*(.{5}$)</pattern>
        <substitution>\1</substitution>
        <text>00000${build_number}</text>
    </setInstallerVariableFromRegEx>
    

    That will prepend the number with zeros and then take the last 5 digits

Please sign in to leave a comment.