[英]Deploy a proyect with Gitlab cd/ci and lftp in a server with cpanels
I has been reainding some question and articles before make this question:在提出这个问题之前,我一直在阅读一些问题和文章:
My problem is that I use the pipeline variables I can not login.我的问题是我使用了无法登录的管道变量。
$ lftp -e "set ssl:verify-certificate false; mirror --reverse --verbose=3 --delete ./ ./ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/; quit" -u $FTP_USER,$FTP_PASS $FTP_HOST
mirror: Login failed: 530 Login authentication failed
Cleaning up project directory and file based variables
But if I add the varaible value in the yml it works.但是,如果我在 yml 中添加变量值,它就可以工作。 Cpanels fpt user is build in this way: user@domian
I don't know if this can be the problem when it's in a variable. Cpanels fpt 用户是以这种方式构建的: user@domian
我不知道当它在变量中时这是否会成为问题。
$ lftp -e "set ssl:verify-certificate false; mirror --reverse --verbose=3 --delete ./ ./ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/; quit" -u user@domian,password domain
In such cases where you are able to successfully run the command directly but it's not working when using variables.在这种情况下,您可以直接成功运行命令,但在使用变量时它不起作用。 Checking a few cases usually helps.检查几个案例通常会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.