在pipeline中不像在windows batch command中直接%WORKSPACE%这样 需要写成这样: echo env.WORKSPACE 转载于:https://www.cnblogs.com/gcgc/p/10268168.html