use local variable in second stage pipeline test