Dynamic calculation of pipeline version