cicd-using-python

pip install paramiko

pip install gitpython

sudo chown -R ubuntu:ubuntu /opt

sudo chmod -R u+rwx /opt

$ scp -v -i office_sing.pem -o StrictHostKeyChecking=no Power-Cloud-1.war ubuntu@54.169.57.165:/opt/

Replace the following value according to your requirement

repo_url (gitHub)

local_path

hostname (tomcat IP)

username (tomcat server)

source_path (.war file path)

destination_path

key_path (.pem file)