1.到gitlab个人设置里添加:
Add a personal access toke
2.安装插件后选择:
3.使用:
set +x
echo $BUILD_USER;
echo $gitname;
echo $gittoken;
git clone http://$gitname:$gittoken@git.xxx.com/business/xxx.git xxx
1.到gitlab个人设置里添加:
2.安装插件后选择:
3.使用:
set +x
echo $BUILD_USER;
echo $gitname;
echo $gittoken;
git clone http://$gitname:$gittoken@git.xxx.com/business/xxx.git xxx