jenkis configure ftp manual deployment
1. Install ftp vsftpd
jar package installation and installation move http://knight-black-bob.iteye.com/blog/2244731 The following describes the yum installation yum install vsftpd yum install ftp start off service vsftpd start service vsftpd stop restart the server /etc/init.d/vsftpd restart Modify the configuration file vim /etc/vsftpd/vsftpd.conf Open annotation chroot_list_file=/etc/vsftpd/chroot_list Add user useradd -d /home/baoy/soft/vsftp/curiousby -g ftp -s /sbin/nologin curiousby passwd curiousby baoyou81 vim vi /etc/vsftpd/chroot_list baoyou
2. Configure jenkis
# Put the apk on ftp Server. #Put apk from local to ftp server if ping -c 3 ${JENKINS_IP};then echo "Ftp server works normally!" else echo "Ftp server is down again!" exit 1 be ftp -nv <<EOC open ${JENKINS_IP} user curiousby baoyou81 prompt binary cd /home/baoy/soft/vsftp/curiousby cd ./${PROJECT_NAME} mkdir `date +%Y%m%d` cd "`date +%Y%m%d`" lcd ${PAK_PATH} mput *.${PROJECT_SUFFIX} close bye EOC echo "-> Done: Put package file successfully!"
3. Build the project
4. Test
Donate to developers
Driven by interest, I write 免费
something with joy and sweat. I hope you like my work and can support it at the same time. Of course, if you have money to support a money field (the love sign in the upper right corner, support Alipay and WeChat donations), you have no money to support a personal field, thank you.
Thank you for your sponsorship, I will do better!