我正在为docker映像编写脚本,但是在shell脚本中,我传递了参数,但是
跟随我的Jenkinsfile和Shell脚本
docker tag $1:latest $2:latest
docker tag $1:latest $2:${BUILD_NUMBER}
和Jenkinsfile
input id: '12', message: 'name ', parameters: [choice(choices: ['$1', '$2'], description: '', name: 'choise')]