Senin, 23 Maret 2020

Add jenkins slave with key

First we need ssh on jenkins slave .


    - yum install java-1.8.0-openjdk - useradd -d /var/lib/jenkins jenkins - passwd jenkins - su - jenkins - ssh-keygen -t rsa -C "Jenkins agent key"



- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_key
- chmod 600 ~/.ssh/authorized_keys



On jenkins master example http://localhost:8080 

add new node :


then , we need add ip to slave :







Backup Mysql 90 hari dan upload ke s3 AWS

MYSQL_HOST='localhost' MYSQL_PORT='3306' MYSQL_USER='root' MYSQL_PASSWORD='xxxxxxx' BACKUP_RETAIN_DAYS=90   ...