pipe道上的dockerlogin错误

我无法通过Jenkinspipe道login我的docker我的代码如下。

// Build Docker image stage 'Build and Push code' withCredentials( [[ $class: 'UsernamePasswordMultiBinding', credentialsId: 'rkstar007', passwordVariable: 'DOCKERHUB_PASSWORD', usernameVariable: 'DOCKERHUB_USERNAME' ]] ) { sh "docker login -u '${env.DOCKERHUB_USERNAME}' -p '${env.DOCKERHUB_PASSWORD}'" sh "docker build -t rkstar007/mesosphere:${gitCommit()} ." sh "docker push rkstar007/mesosphere:${gitCommit()}" }