好的,我有当前詹金斯构建中的情况。构建步骤是这样的
sh new_script.sh $USER
helm package $USER
container_name=`helm install $USER-0.1.0.tgz | grep ContainerCreating | awk '{print $1}'`
echo "$container_name"
password=`openssl rand -base64 14`
echo -e "$password\n$password" | kubectl exec -i $container_name -- passwd