[fix JENKINS-20792]to enable remote api create pipeline

fix JENKINS-20792
to enable remote api create pipeline